diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2020-06-22 12:52:23 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2020-06-23 10:41:15 +0000 |
commit | e4402e229f78ae4a303b46051ced5af64dfc493f (patch) | |
tree | e328c97a6ef52324233b7d3fd97771045a604234 | |
parent | e1c4fcaab57d448385502cdcc64f34b8e84c2234 (diff) |
Doc: Describe options to automatically fix indentation
Change-Id: Ic0b71c382716bcd267027ccc94c942ba017fe426
Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r-- | doc/qtcreator/images/qtcreator-options-text-editor-behavior.png | bin | 0 -> 24042 bytes | |||
-rw-r--r-- | doc/qtcreator/src/editors/creator-code-indentation.qdoc | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/qtcreator/images/qtcreator-options-text-editor-behavior.png b/doc/qtcreator/images/qtcreator-options-text-editor-behavior.png Binary files differnew file mode 100644 index 0000000000..b63ca8164e --- /dev/null +++ b/doc/qtcreator/images/qtcreator-options-text-editor-behavior.png diff --git a/doc/qtcreator/src/editors/creator-code-indentation.qdoc b/doc/qtcreator/src/editors/creator-code-indentation.qdoc index 841f5c5b77..716c5cec20 100644 --- a/doc/qtcreator/src/editors/creator-code-indentation.qdoc +++ b/doc/qtcreator/src/editors/creator-code-indentation.qdoc @@ -52,6 +52,15 @@ specify several sets of code style settings and easily switch between them. 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) \section1 Indenting C++ Files |