[Qt-creator] Is there any option to disable indentation for macro definition

Abir Basak abirbasak at gmail.com
Wed Jun 5 14:58:06 CEST 2013


I am using QtC 2.7.1
When I indent the code (Ctrl+I) It indents the macro block too

e.g
#define X     \
namespace K   \
{             \
    class A   \
    {         \
    };        \

gets formatted to

#define X     \
    namespace K   \
{             \
    class A   \
{         \
    };        \

inmy as the macro blocks essentially ill-formed codes, I do not see any
suitable way to format macro definition, and with large blocks, the
formatted code looks bad.

Is there an option to keep macro definition blocks as it is (i.e without
any indentation) ?

Thanks
abir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130605/bc1e7b04/attachment.html>


More information about the Qt-creator mailing list