[Qt-creator] Qt Creator beautifier plugin vs. built-in code style
Andy
asmaloney at gmail.com
Tue Aug 22 16:03:44 CEST 2017
:-)
Thanks Nikolai. To be fair - _that_ one is non-obvious.
To me, it's a custom format, but I guess a config file can be considered
both "predefined" and "customized".
My UX suggestion (also changing "style" to "format"):
O Use standard format <dropdown>
O Use custom format <dropdown>
O Use configuration file <put in file name to look for, default to
.clang-format>
---
Andy Maloney // https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>
On Tue, Aug 22, 2017 at 9:44 AM, Nikolai Kosjar <nikolai.kosjar at qt.io>
wrote:
> On 08/22/2017 03:33 PM, Andy wrote:
>
>> Cool - thanks Eike!
>>
>> Is there a way to turn that on per-project? I don't see anything in the
>> project settings for that. Aside from my own work, I work on several
>> open-source projects and switch back-and-forth frequently. Unfortunately
>> I'm not in a position to force them to use the One True Format...
>>
>> Another suggestion - it would be very useful to be able to read the
>> clang-format config per-project from a file (".clang-format.cfg?"). (Does
>> this already exist too?) This would help avoid misconfiguration when
>> several developers are on the same codebase.
>>
>
> Menu: Tools > Options > Beautifier > Clang Format:
> Use predefined style: File
>
> This will search for e.g. .clang-format in the parent directories.
>
> Nikolai
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20170822/83b2c619/attachment.html>
More information about the Qt-creator
mailing list