The Formatting panel lets you configure options for formatting your source code. You open the Standard Java SE Project Properties dialog box by right-clicking
any
and choosing Properties.
By default, global formatting options are applied to all projects. To configure global formatting options, choose Tools in the IDE's main menu and select Options > Editor > Formatting.
Use project specific options. Select this button to configure specific formatting options and apply them only to the current project. You can choose whether to load formatting options from other projects or use manually modified options from this panel.
Load from other projects. Click this button and choose a NetBeans IDE project from which to import formatting options.
Language. Select the language to which the options you are modifying should be applied. You can select All Languages or Java.
For Java, you can configure numerous code formatting options, which fall into the following categories, available from the Category list:
Tabs and Indents
Alignment
Braces
Wrapping
Blank lines
Spaces
The Preview pane displays how the changes you make will appear in the Source Editor.