Difference between revisions of "Setting proper whitespace settings"
From Knowitall
(Created page with "If you are using Eclipse, please set the indentation to 4 spaces. The Eclipse default is to use tabs. To do this, go to "Preferences -> Java -> Code Style -> Formatter", create...") |
|||
Line 2: | Line 2: | ||
To do this, go to "Preferences -> Java -> Code Style -> Formatter", create a new profile, push "Edit" and under the "Indentation" tab specify "Spaces only" and an "Indentation size" of 4. | To do this, go to "Preferences -> Java -> Code Style -> Formatter", create a new profile, push "Edit" and under the "Indentation" tab specify "Spaces only" and an "Indentation size" of 4. | ||
+ | |||
+ | Note that Ctrl+Shift+f reformats the open file. |
Latest revision as of 19:35, 27 December 2010
If you are using Eclipse, please set the indentation to 4 spaces. The Eclipse default is to use tabs.
To do this, go to "Preferences -> Java -> Code Style -> Formatter", create a new profile, push "Edit" and under the "Indentation" tab specify "Spaces only" and an "Indentation size" of 4.
Note that Ctrl+Shift+f reformats the open file.