[Qt-creator] Custom clang-format binary for Code Style

Eike Ziller Eike.Ziller at qt.io
Fri Oct 18 13:06:36 CEST 2024


Hi,

the ClangFormat plugin needs a bit more direct access to ClangFormat's features, which is why it builds against the ClangFormat library and uses that directly.
Unfortunatly that also means that you do not get a choice of the ClangFormat version.

The Beautifier plugin that supports various formatting tools also supports ClangFormat, and uses a configurable executable, but only "format on save" and manual formatting.

Br, Eike

> Am 08.10.2024 um 16:05 schrieb Andrzej Telszewski <andrzej at telszewski.com>:
> 
> Hello,
> 
> how can I select custom _clang-format_ binary for Code Style, for a particular project?
> I mean the one that is used for formatting _as you type_, not for e.g. manual formatting.
> 
> Thanks!
> 
> --
> Best regards,
> Andrzej Telszewski
> 
> -- 
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator

-- 
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Erich-Thilo-Str. 10
12489 Berlin, Germany
eike.ziller at qt.io
https://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