[Qt-creator] Not Source Code Beautifier/Formatter for QtCreator?
Victor Sardina
Victor.Sardina at noaa.gov
Thu Nov 27 02:02:45 CET 2008
Thorbjørn Lindeijer wrote:
> First, please don't start new topics by replying to an email in an
> existing thread.
I didn't intend to start a new topic. I simply hit "Reply" and changed
the subject of the email thinking that this would suffice to start a new
thread. I guess that the email header contains other pieces of
information that you guys parse to put order to an otherwise total
emailing mess. My apologies if this caused any trouble over there.
> ext Victor Sardina wrote:
>> I personally miss a lot not having a code formatter/beautifier such as
>> astyle, for instance, available within QtCreator. QDevelop offers it as
>> a plugin, which makes it trivial to install and use. It turns difficult
>> to keep track of all formatting issues while concentrating on the coding
>> part. Therefrom astyle to the rescue...
>
> Artistic Style has been suggested before, but when I looked into it the
> only API it seemed to offer required passing in the whole file. So it
> seems to me it could only be used to reformat the whole file and not for
> reformatting selections or determining how to indent the next line. Or
> am I missing something? If not, would that feature alone be really that
> useful?
I have to answer you with an absolute "yes". For instance, right now I
change some old code to make it more Qt-ish, namely, inheriting QObject
et al. This has also brought the benefit of shorter code once you use
other Qt classes such as QString and QRegExp, as you end up getting rid
of extra conditional statements et al., which in turn forces you to
reformat most of the code. Doing that reformatting by hand turns quite
time consuming and inefficient, as a code formatter/beautifier would
take care of a de facto repetitive/no-brain-power-required/boring task.
The client programmer could and should devote that time to more
creative endeavours. Now, beware that if you leave it to me, I would not
even type the code and would have some sort of gizmo read my thoughts
and write it for me...In other words, I personally consider typing the
code itself enough of a time consuming task to in addition have to
retype it each time that you come up with an optimisation et al.
>> I keep bringing up QDevelop features, and I apologize if it sounds a
>> little "pesky" sometimes, but again, we long for the features that we
>> have found most useful and convenient in the software we have used in
>> the past.
>
> No problem, it's good to know which features QtCreator misses that
> people like in other IDEs. :)
Thank you for reading as well. I know it can turn annoying when people
keep asking for these or that feature, even when you consider it a good
thing. Asking for features/changes turn easier, but the actual
implementation of even a simple feature doesn't turn that easy at all
sometimes.
>> BTW, does anyone know of a version for SUN Solaris? If unavailable, can
>> we download the source code and compile it under that platform as well?
>
> We're working towards releasing the source, but I can't say how long
> it's going take, honestly.
>
> Regards,
> Bjørn
>
Best regards,
Victor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: victor_sardina.vcf
Type: text/x-vcard
Size: 437 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20081126/6b7d65f2/attachment.vcf
More information about the Qt-creator-old
mailing list