Java Editor
-
You can speed up typing by:
-
Turning off problem indicators that appear before compiling. Clear all checkboxes in Window > Preferences > Java > Editor > Problem
Indication.
-
Hiding the overview ruler. Clear the Window > Preferences > Java > Editor > Appearance > Show overview ruler checkbox.
-
Turning off the editor -> Outline synchronization. Clear the Window > Preferences > Java > Editor > Appearance > Synchronize outline
selection on cursor move checkbox.
-
You can turn off the tooltips by toggling off the Show Text Hover workbench toolbar button.
Note: this button is only enabled when a Java editor is open.
-
You can have your copyright notice generated for newly created Java files. Edit the filecomment template (or edit the typecomment template if you need to
customize the comment generated for each new type). Note: make sure that the appropriate checkbox(es) under Window > Preferences > Java >
Code Generation is/are selected.
-
You can quickly select Java code in a syntax-aware way using the Structured Selection feature.
To use Structured Selection (optionally) select some text and press Ctrl+Shift+Arrow Up or select Edit > Expands Selection To > Enclosing
Element from the menu bar.
-
Pressing F2 when the caret is positioned inside text underlined with a squiggly presents the detailed error message.
-
Pressing F2 when the caret is positioned inside a name of an element presents Javadoc for that element.
-
QuickFix can help you fix spelling mistakes.
-
For example, type "a".lengh() // note the missing "t" and use QuickFix to correct the spelling mistake.
-
QuickFix can create method stubs.
-
For example, type a method called
iDoNotExist();
Press Ctrl+1 and Quick Fix will offer to create a stub for that method.
-
QuickFix can create fields, local variables and method parameters:
-
For example, after you type:
myLuckyNumber = new Integer(100);
QuickFix will help you create a field, local variable or parameter myLuckyNumber
of type Integer.

Java editor

Using the Java editor

Java Editor Preferences