The following Java editor preferences can be set on this page:
Appearance specifies the Java editor's appearance.
Option |
Description |
Default |
---|---|---|
Displayed tab width |
Specifies how wide tabs are displayed in units of spaces. |
4 |
Print margin column |
Specifies the column after which the print margin is displayed. To display the print margin, enable the option Show print margin, the preference Appearance color options specifies the color of the print margin. |
80 |
Synchronize outline selection on cursor move |
If enabled, the Outline view always selects the Java element enclosing the cursor in the Java editor. |
Off |
Show overview ruler |
If enabled, the overview ruler on the right border of the Java editor is displayed and shows problems of the whole visible document. |
On |
Show line numbers |
If enabled, the vertical ruler on the left border of the Java editor displays line numbers of the visible document. The color of line numbers is specified with Appearance color options. |
Off |
Highlight matching brackets |
If enabled, whenever the cursor is next to a parenthesis, bracket or curly braces, its opening or closing counter part is highlighted. The color of the bracket highlight is specified with Appearance color options. |
On |
Highlight current line |
If enabled, the background of the current line of the cursor is highlighted. The color of the current line background is specified with Appearance color options. |
On |
Show print margin |
If enabled, the print margin is displayed. The preferences Print margin column and Appearance color options determine the position and color of the print margin. |
Off |
Appearance color options |
The colors of various Java editor appearance features are specified here.
|
default colors |
Syntax specifies how Java source code is rendered.
Option |
Description |
Default |
---|---|---|
Background color |
|
System default |
Foreground |
The following Java source fragments can be rendered with different color and style:
|
default colors and styles |
Preview |
Displays the preview of a Java source code respecting the current colors and styles. |
n/a |
Code Assist specifies the behaviour and appearance of code assist.
Option |
Description |
Default |
---|---|---|
Completion inserts/Completion overwrites |
If Completion inserts is on, the completion text is inserted at the caret position,
so it never overwrites any existing text.
|
Completion inserts |
Insert single proposals automatically |
If enabled, code assist will choose and insert automatically single proposals. |
On |
Show only proposals visible in the invocation context |
If enabled, the Java element proposals are limited by the rules of visibility. For example, private field proposals of other classes would not be displayed. |
On |
Present proposals in alphabetical order |
If enabled, the proposals are sorted in alphabetical order. |
Off |
Automatically add import instead of qualified name |
If enabled, type proposals which are in other packages will invoke the addition of the corresponding import declaration. Otherwise, the type will be inserted fully qualified. |
On |
Fill argument names on method completion |
If enabled, choosing a method proposal will additionally insert the method's argument names as specified in its declaration. |
Off |
Enable auto activation |
If enabled, code assist can be invoked automatically. The condition for automatic invocation is specified with the preferences Auto activation delay, Auto activation triggers for Java and Auto activation triggers for Javadoc. |
On |
Auto activation delay |
If the time starting when an auto activation trigger character is encountered until a new character is typed exceeds the auto activation delay, code assist is invoked. |
500 |
Auto activation triggers for Java |
If one of the trigger characters is typed inside Java source code (but not inside a Javadoc comment) and no other character is typed before the auto activation delay times out, the code assist is invoked. |
'.' |
Auto activation triggers for Javadoc |
If one of the trigger characters is typed inside a Java doc and no other character is typed before the auto activation delay times out, the code assist is invoked. |
'@' |
Code assist color options |
The colors used for the following code assist UI elements:
|
default colors |
Annotations specifies when and how annotations are displayed.
Option |
Description |
Default |
---|---|---|
Analyze annotations while typing |
If enabled, annotations are updated as the user types. Otherwise, annotations aren't updated until the Java file is compiled. |
On |
Indicate annotations solvable with Quick Fix in vertical ruler |
Displays a light bulb on the vertical ruler on the left border of the Java editor for every annotation solvable with Quick Fix. |
On |
Annotation presentation |
For every type of annotation you can specify
|
|
Java editor Code Formatter preferences Outline view for Java Java Content Assist Quick Fix