[Qt-creator] The state of the clang-format plugin

Eike Ziller Eike.Ziller at qt.io
Fri Jul 1 09:17:28 CEST 2022

> On 30 Jun 2022, at 20:00, Nikos Chantziaras <realnc at gmail.com> wrote:
> On 29/06/2022 22:11, Nikos Chantziaras wrote:
>> On 29/06/2022 17:33, Eike Ziller wrote:
>>> At the moment you can change the setting globally to “Disable”
>> Where is that setting found? Can't find it anywhere.
> You probably meant Creator 7. In 8, that option is gone and there's no way to prevent Creator from forcing my personal coding style everywhere.
> I opened a bug about it:
> https://bugreports.qt.io/browse/QTCREATORBUG-27781
> IMO, this is a serious show stopper as it makes Creator completely unusable when working on projects not under your control.

I’m confused. I’m talking about Qt Creator 8.

The default setting for the ClangFormat plugin is “Indenting Only”. Which does not format on save at all.
The setting is (like in Qt Creator 7 unfortunately a bit hidden and that should be changed) in Preferences > C++ > Code Style > Edit.
The options for “Formatting mode” are “Indenting Only” (the default), “Full Formatting”, and “Disable”. The only option there that “formats on save” is “Full Formatting”, if you do not want that, switch to e.g. “Disable”, save, switch back on.

All that said, Artem reverted to the old checkboxes yesterday, so the RC will have the checkboxes again.

Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Erich-Thilo-Straße 10
D-12489 Berlin
eike.ziller at qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

More information about the Qt-creator mailing list