Post on 07-Apr-2017
What’s cool in Eclipse goody bag!
Noopur Gupta
Eclipse JDT UI committerIBM Software Labs, Bangalore
noopur_gupta@in.ibm.com
Eclipse Demo Camp, Bangalore, January 2016 1
Abbreviate Package NamesAbbreviate package names with custom rules.
Window > Preferences > Java > Appearance > Abbreviate package names
Eclipse Demo Camp, Bangalore, January 2016 2
Content Assist Proposal -Insert or OverwritePress ‘Ctrl’ to toggle while content assist is active.
Window > Preferences > Java > Editor > Content Assist > Insertion
Show AnnotationsTo determine who last modified a line of code and when.
Right-click on left editor pane > Show Annotations
Eclipse Demo Camp, Bangalore, January 2016 3
BookmarksTo track important places in your source code.
Right-click on left editor pane > Add Bookmark…
(OR) Edit > Add Bookmark…
- Bookmarks view
Grouping & Sharing Breakpoints
Breakpoints view > Group By
Breakpoint Working Sets
Right-click > Export/Import breakpoints…
Eclipse Demo Camp, Bangalore, January 2016 4
Smart Step Into SelectionTo step into a single method within a series of chained or nested method calls.
Ctrl + Alt + Click (OR) Ctrl + F5
Eclipse Demo Camp, Bangalore, January 2016 5
Print-pointA point in code where the debugger does not break the execution but only prints to console.
To debug race conditions or to see the order of execution of threads, without adding print statements in the code.
Set a conditional breakpoint with Suspend when ‘true’option selected and a condition which is always ‘false’ (Example: return false;) as the last statement.
UI Responsiveness MonitoringFor automatic detection and logging of stack traces when Eclipse UI is unresponsive.
Window > Preferences > General > UI Responsiveness Monitoring
Eclipse Demo Camp, Bangalore, January 2016 6
Zoom In Text EditorsZoom In: Ctrl + +
(or) Ctrl + =
Zoom Out: Ctrl + -
Word Wrap In Text EditorsBreaks text into lines to fit in the available display area, allowing text to be read from top to bottom without horizontal scrolling.
Toggle Word Wrap button (Alt + Shift + Y)
Window > Preferences > General > Editors > Text Editors > Enable word wrap when opening an editor
Eclipse Demo Camp, Bangalore, January 2016 7
Substring Code Completion
Allows you to enter any part of the desired proposal's text while invoking the content assist.
Window > Preferences > Java > Editor > Content Assist > Show substring matches
Eclipse Demo Camp, Bangalore, January 2016 8