[Qt-creator] Qt Creator beautifier plugin vs. built-in code style
timur.kristof at gmail.com
Tue Aug 22 16:26:13 CEST 2017
> > Do you guys intend to improve the built-in code styling, or do you
> > want
> > to eventually replace it with either the beautifier or something
> > based
> > on clang-format?
> Evaluation is on-going :)
Awesome, I'm looking forward to hear more about this.
> Some general observations:
> 1. Qt Creator has a built-in *indenter*, handling/controlling
> before the first token of a line.
Yes, and it sometimes clashes with clang-format and the beautifier
plugin, especially with regards to constructs that are not well-
understood by Qt Creator (eg. lambda functions).
So stuff like Ctrl+I will do something else than the beautifier plugin,
which is less than user friendly.
> 2. clang-format does this and more:
> * it handles/controls whitespace everywhere, also taking a maximum
> column count into account
> * it can e.g. also sort your includes and add comments at the
> curly brace of namespaces: "} // namespace X".
Yes, apart from a very few minor glitches, I love clang-format!
That's why I asked this in the first place. It would be nice to see
clang-format fully integrated and the legacy code formatter/indenter
Is that on the radar?
More information about the Qt-creator