|
|
Java editor is more customizable |
Java > Editor preference page offers more configuration options:
|
|
|
Sticky hovers |
You can open a hover in a scrollable and resizable window by pressing F2. You can select and copy content from this window. |
|
|
Prominent status indication |
Both the Default Text editor and the Java editor now display a prominent marker in the upper right corner to indicate that the file contains errors or warnings. |
|
|
Find in file |
The Search menu group contains a new command (Occurrences in File) to search for all occurrences of types, fields, methods and local variables inside the compilation unit or class file in which the element is declared. Consistent with other search commands, markers are generated and presented as annotations in the editor. Entries in the Search Results view have different icons for read and write access. In this example you see the search results for "fName" in "TestCase.java". |
|
|
More Quick Fixes |
There are now Quick Fixes for additional Java problems. Click the light bulb in the left margin of the Java editor, press Ctrl+1 or select Edit > Quick Fix from the menu to:
Other compiler-detected problems that can be fixed using Quick Fix include:
|
|
|
Quick Assist |
The Quick Fix actions are now available even when there are no errors. Position the caret in an identifier and press Ctrl+1 (Edit > Quick Fix) to invoke Quick Assist.
|
|
|
Code assist improvements |
|
|
|
Improved Java outline view |
You can adjust the Java outline to show just the members of the compilation unit's main type by pressing the button (Go Into Top Level Type) in the Outline view toolbar. |
|
|
Hyper-linked Java code |
While hovering over Java code, pressing the Ctrl key and moving the mouse turns class, method, and field identifiers into clickable links to the corresponding declaration. This option can be configured via the Java > Editor > Navigation tab. |
|
|
Scroll to the next member | Use Ctrl + Shift + Arrow Down (Navigate > Go To > Next Member) and Ctrl + Shift + Arrow Up (Navigate > Go To > Previous Member) in the Java editor to quickly navigate between member methods, fields, initializers, and types. |
|
|
More errors detected on the fly |
The Java editor now annotates more error types, including uncaught exceptions and unused variables, which require detailed flow analysis. |
|
|
In-place outlines |
Press Ctrl+F3 (Navigate > Open Structure) in the Java editor to pop up an in-place outline of the element at the current cursor position. Or press Ctrl+O (Edit > Open Structure) to pop up an in-place outline of the current source file. |
|
|
Hover information in editor overview |
The Java editor overview ruler (on the right side of the frame) now shows hover information for problem annotations. |
|
|
Class file editor |
The class file editor has caught up with the compilation unit editor. It now supports cursor-line highlighting, line numbers, annotation highlighting, overview ruler, print margin, semantic selection expansion, and keyboard navigation between the members of the class file. |
|