Setting NetBeans Options:
Select the
Indentation
or
Formatting
tab in the
Editor
screen.
Change the
Number of Spaces per Indent
to
2
.
Click image for larger view.