The Indenting preferences page allows you to adjust details of
the automatic indenting system.
To open the preferences,
select Window > Preferences > Mathematica,
click the tree expander, and then open the Editor
tree expander. This shows
a window such as the following.
With this page you can disable all or some of the automatic indenting system.