Doc: Describe options to automatically fix indentation

Change-Id: Ic0b71c382716bcd267027ccc94c942ba017fe426
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Leena Miettinen
2020-06-22 12:52:23 +02:00
parent e1c4fcaab5
commit e4402e229f
2 changed files with 9 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -52,6 +52,15 @@
specify several sets of code style settings and easily switch between them. specify several sets of code style settings and easily switch between them.
In addition, you can import and export code style settings. In addition, you can import and export code style settings.
To automatically fix indentation according to the indentation settings
when you save the file, select \uicontrol Tools > \uicontrol Options >
\uicontrol {Text Editor} > \uicontrol Behavior >
\uicontrol {Clean whitespace} > \uicontrol {Clean indentation}. Select
the \uicontrol {Skip clean whitespace for file types} check box to
exclude the specified file types.
\image qtcreator-options-text-editor-behavior.png "Text Editor Behavior options"
\if defined(qtcreator) \if defined(qtcreator)
\section1 Indenting C++ Files \section1 Indenting C++ Files