[Qt-creator] C++ Code Style and empty lines
Eike.Ziller at qt.io
Fri Feb 16 09:18:58 CET 2018
> On 15. Feb 2018, at 23:20, Benjamin TERRIER <b.terrier at gmail.com> wrote:
> 2018-02-15 19:35 GMT+01:00 Nikos Chantziaras <realnc at gmail.com>:
>> On 15/02/18 13:59, Benjamin TERRIER wrote:
>>> 2018-02-15 12:03 GMT+01:00 Dmitry Volosnykh <dmitry.volosnykh at gmail.com>:
>>>> Hi, Benjamin
>>>> Tools menu / Options menu item / Text Editor entry in the list on the
>>>> left /
>>>> Behaviour tab / Cleanups Upon Saving control group
>>> I know about this, I even talk about this in my email.
>>> My concern is about the auto indent function (Right Click >
>>> Auto-indent Selection)
>> If you don't save the file after auto-indenting it, then how did you end up
>> with spaces in empty lines unless you didn't enable cleanup-on-save?
> Again, I am not asking about the "cleanup on save" feature.
> And I never said I ended up with spaces on empty lines *after* saving the file.
> I am asking if there is a way to configure the auto-indent feature so
> that it does not
> generate extra spaces on empty lines.
It should definitely not add extra spaces on empty lines. That sounds very much like a bug to me. Probably one that no one found because of the clean-on-save feature, but still.
Please --> https://bugreports.qt.io
> The fact that the "cleanup on save" feature, when enabled (with or
> without the clean indent option
> checked), needs to clean up what the auto indent feature just did,
> just proves that as-is
> the auto-indent feature is bugged (if not configurable).
> I do not expect the auto-indent feature to add whitespaces that need
> to be cleaned.
> I would rather expect the "cleanup on save" and auto indent features to produce,
> or at least try to produce, the same result.
> Qt-creator mailing list
> Qt-creator at qt-project.org
Principal Software Engineer
The Qt Company GmbH
Rudower Chaussee 13
eike.ziller at qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator