Doc: Describe resurrected Clang Format preferences

Update the screenshot.

Task-number: QTCREATORBUG-27560
Change-Id: I3178ab880d49097c837354c4f32501096b179c4b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Leena Miettinen
2022-07-04 10:28:13 +02:00
parent e94c0f4a8b
commit 22ed2aa8ac
2 changed files with 5 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -52,12 +52,14 @@
\uicontrol Edit > \uicontrol {ClangFormat} >
\uicontrol {Override Clang Format configuration file}.
\image qtcreator-code-style-clang-format.png "C++ Clang Format options"
\image qtcreator-code-style-clang-format.png "C++ Clang Format preferences"
In \uicontrol {Formatting mode}, select \uicontrol {Indenting Only} to only
indent code. Select \uicontrol {Full Formatting} to use the \key {Ctrl+I}
keyboard shortcut to format code instead of indenting it and to apply the
formatting to the edited code when you save the file.
keyboard shortcut to format code instead of indenting. To apply the
formatting while you type, select \uicontrol {Format while typing}. To apply
the formatting to the edited code when you save the file, select
\uicontrol {Format edited code on file save}.
This creates a local configuration file that overrides the one stored in the
file system.