forked from qt-creator/qt-creator
Doc: Describe options to automatically fix indentation
Change-Id: Ic0b71c382716bcd267027ccc94c942ba017fe426 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
BIN
doc/qtcreator/images/qtcreator-options-text-editor-behavior.png
Normal file
BIN
doc/qtcreator/images/qtcreator-options-text-editor-behavior.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user