[Qt-creator] alignment after new line for statement continuations

Yi Ding yi.s.ding at gmail.com
Wed Jan 25 15:17:56 CET 2012


On Wed, Jan 25, 2012 at 2:33 AM, <erik.verbruggen at nokia.com> wrote:

> On Jan 24, 2012, at 17:39, ext Yi Ding wrote:
>
> > Hi everyone,
> >
> > First time posting.  First, thanks for making an incredibly awesome IDE.
>  The super-fast (and very accurate) code completion is killer, so please
> don't get rid of that (been reading the Clang threads a bit, and while
> Clang is incredibly cool, it'd be a sad day if Qt Creator's code completion
> became as slow as visual studio's).
> >
> > I do have a question with regard to indentation though.  Currently, it
> looks like even when I set my indentation to 4 spaces, if I have a
> statement continuation on a new line, it indents by 8.
> >
> > For example:
> > if I want to have
> > return a +
> >    b;
> >
> > It will instead default to
> > return a +
> >         b;
>
> Yes, the second line with "b;" is a continuation line, which we indent by
> 2x indent-width. You can change this for conditions and assignments, but
> not (yet) for return statements. So please file a feature request on
> bugreports.qt.nokia.com.
>
> Regards,
> Erik.
>

Thanks Eric.  I have done so.
https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6864  It looks like
double indentation is the way to go, but unfortunately some other editors
(ahem, Microsoft, ahem) don't support it yet, so our code base was written
entirely with single indentation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120125/d68438c1/attachment.html>


More information about the Qt-creator mailing list