Hi, is it possible to indent code in QtCreator from this:
if(flag==6){
bufferIndex+=5;
}
if(flag==6){
bufferIndex+=5;
}
To copy to clipboard, switch view to plain text mode
to code with spaces before and after keyword and operators?
if ( flag == 6 ) {
bufferIndex += 5;
}
if ( flag == 6 ) {
bufferIndex += 5;
}
To copy to clipboard, switch view to plain text mode
After indent ( ctrl + I ) I get only aligment of 2.line and result is lik this:
if(flag==6){
bufferIndex+=5;
}
if(flag==6){
bufferIndex+=5;
}
To copy to clipboard, switch view to plain text mode
I have found it is possible to change CodeStyle in projects but don’t know how to add this spaces.
Bookmarks