[Qt-creator] C++ Code Style and empty lines

Dmitry Volosnykh dmitry.volosnykh at gmail.com
Thu Feb 15 12:03:01 CET 2018


Hi, Benjamin

Tools menu / Options menu item / Text Editor entry in the list on the left
/ Behaviour tab / Cleanups Upon Saving control group

On Thu, Feb 15, 2018 at 1:59 PM Benjamin TERRIER <b.terrier at gmail.com>
wrote:

> Hello,
>
> Is there a way in Qt Creator to set the C++ code style so that there
> are no indentation spaces in empty lines?
>
> I'm looking for this, because last time I made a contribution to Qt I
> tried to
> auto indent some code and it added spaces in empty lines. This is
> undesirable
> because it goes against Qt Project code style.
>
> Also, this conflicts with the behavior of "Cleanups Upon Saving" options.
> Because if "Clean whitespace" is checked, it will remove the "space on
> empty line" added by the auto-indent function.
> The "clean indentation" option seems to have no effects on this, which
> is kind of weird, because that means that "auto-indent" and "clean
> indentation" do not agree on what the indentation should look like in
> empty lines.
>
> Regards,
>
> Benjamin
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180215/fa050b48/attachment.html>


More information about the Qt-creator mailing list