350 likes | 368 Views
Learn valuable tips and tricks for Eclipse, including how to enable the dark theme, navigate workspaces and projects efficiently, use code navigation features, and debug effectively. Use cases, shortcuts, and helpful plugins are covered.
E N D
Eclipse: Tips And Tricks ManojPalat – IBM India Committer, Eclipse JDT/Core
Gather Workspaces Projects Working Sets Dynamic Working Sets Short Names Filters Cross Reference • Show Location • Show Name • Recent Workspaces • Switch workspace • Import Install • Share preferences
Gather: Workspaces -showlocation (eclipse.ini) Show workspace name
Gather: Projects Filters Cross reference
Navigate : Where Am I? • Quick Access • Outline • Breadcrumb • Method Navigation • Annotation Navigation
Navigate - Outline Quick Outline – Ctrl+o In place Outline – Ctrl + F3
Navigate: Breadcrumb Code Navigation Ctrl +Shift + Up – Prev Method Ctrl + Shift + Down – Next Ctrl + Shift + , - Prev Annot Ctrl + Shift + . – Next
Editor • Pin Me! • Blame Who? • Folding • Highlight Occurrences • Clone • Block Selection • Keyboard Shortcuts
Editor: Pin Me! How To Practical Use Case
Editor: Folding Highlight – Alt + Shift + O
Code + Debug Code Debug Breakpoints Smart Step into Selection Conditional Breakpoint Exception Breakpoint Print point Unrelated Breakpoints Disable • Templates • CA Substring • Quick Fix • Hover • Level • Spy Me! • Paste Me!
Code: Templates Content Assist – Code Completion Configure Existing Templates Add New templates Neon New : if null/non-null template
Code: Completion Prefix Substring – Neon New Highlight – Neon New
Code: Hovers Normal Hover Shift Hover – Source Generic Type Infer on Hover Sticky Hover – F2
Code: Quick Fix Ctrl +1 to bring up Quick Fix or Quick Assist
Code: Level Severity Level – info – Neon New Click and Configure
Code : Spy, Paste & More Plug-in Spy Alt+Shift+F1 Plug-in Menu Spy Alt+Shift+F2 -> Tool Paste Code to Project Open Type from Clipboard – Neon New
Debug : Smart Step Ctrl + F5 Ctrl + Alt + Click Context Menu
Debug: Breakpoints Breakpoints Conditional Breakpoints Print out points
Debug: Method Breakpoints Method Entry Method Exit