[Qt-interest] Question about QtCreator and indentation

Rob Simmermon rob.simmermon at simmtechsolutions.com
Wed Jun 16 17:00:55 CEST 2010


The indenation options for Qt-Creator work great, and are closest to  
what I need as compared to any other editor.

The one issue I have is how it tries to line up code that continues on  
multiple lines.

Is there any way to get the editor to indent multi-line code as if it  
were just the beginning of a code block?

For example, consider the following:

unsigned int myVar = someOtherVar + yetAnotherVar;

If I try to break this up into multiple lines by hitting enter just in  
front of "yetAnotherVar", it lines up "yetAnotherVar" right under  
"someOtherVar".  What I want to happen is just have "yetAnotherVar" be  
on the next line, indented 4 spaces.  If there were three lines, I  
would want the second and third lines indented 4 spaces.

Any help?

Rob Simmermon
411 N. Blanche Ave.
Madison, SD  57042
E - rob.simmermon at simmtechsolutions.com
T - (605) 868-9404
F - (866) 260-2036





More information about the Qt-interest-old mailing list