On 29/06/2022 09:40, Eike Ziller wrote:
On 29 Jun 2022, at 05:26, Nikos Chantziaras <rea...@gmail.com> wrote:
How are you supposed to deal with lines you didn't edit changing and have no
place in a git commit? It's impossible to work on code that's under version
control.
The ClangFormat plugin restricts formatting on save to the regions that you
edited since last saving (the regions that have a green marker on the side.
This is unsuitable when you don't want to reformat the code. But more
importantly, when you undo, it breaks down. You edit something, then
notice it formatted when saving, you undo it, but it won't work. No
matter what you do, it will format it. I noticed it like an hour too
late, when my git diff was a complete mess, as it formatted code I
didn't want touched.
At that point, I had to switch back to Creator 7.
This makes it virtually impossible to use Creator. Sure, if you only
ever work on your own code, it's fine. But I work on a ton of projects,
most of them don't even have a clang-format file.
_______________________________________________
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator