What's cool in Eclipse goody bag!

8
What’s cool in Eclipse goody bag! Noopur Gupta Eclipse JDT UI committer IBM Software Labs, Bangalore [email protected] Eclipse Demo Camp, Bangalore, January 2016 1

Transcript of What's cool in Eclipse goody bag!

Page 1: What's cool in Eclipse goody bag!

What’s cool in Eclipse goody bag!

Noopur Gupta

Eclipse JDT UI committerIBM Software Labs, Bangalore

[email protected]

Eclipse Demo Camp, Bangalore, January 2016 1

Page 2: What's cool in Eclipse goody bag!

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

Page 3: What's cool in Eclipse goody bag!

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

Page 4: What's cool in Eclipse goody bag!

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

Page 5: What's cool in Eclipse goody bag!

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

Page 6: What's cool in Eclipse goody bag!

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

Page 7: What's cool in Eclipse goody bag!

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

Page 8: What's cool in Eclipse goody bag!

Eclipse Demo Camp, Bangalore, January 2016 8