|
Set indentation size when editing java files in Oracle JDeveloper |
|
Facts -
Java
|
|
Thursday, 15 April 2010 20:24 |
|
This page is for Oracle JDeveloper 11.1.1.2.0.
I prefer using only two character indentation rather than four character indentation, which is the default in most editors. To get the JDeveloper java editor to use two charater indentation in java files do the following:
- Open a java file in JDeveloper
- Within the java editor right click in the file and select Preferences.
- Then select Code Style in group Code Editor.
- Select JDeveloper Classic in the drop down list right from Profile.
- Click OK.
- Now you should be back in the java editor. Right click again and select Reformat.
To reindent all files in your JDeveloper project at once do the following:
- Right click on your JDeveloper project in the Application Navigator.
- Select Reformat.
- Save all files.
|