indentation of BEGIN and END
jeljeljel
Posts: 7
The indentation rules I have make the BEGIN and END statements indent.
So I get this ...
I would like this instead ...
Is there a way to make the refactor format for example #2?
Thanks,
John
So I get this ...
if (@a350 > 0) begin set @installationCharges = 311 end
I would like this instead ...
if (@a350 > 0) begin set @installationCharges = 311 end
Is there a way to make the refactor format for example #2?
Thanks,
John
Comments
What I would like is for the BEGIN and END to line up with the IF keyword.
However, I'm with jeljeljel in this, I'd like my begin's to align with the IF statement in the line above.
This is how C# formats it's code as well.
if (disposing && (components != null))
{
(4 spaces here) components.Dispose();
}
How about giving us the option between the following?
A.
B.
C.
I actually prefer C in many cases, but it would be nice to be able to specifiy.
Regards,
Visit this link to learn more.
Regards,
I would really like to see the following two:
And why not a Symbian style for those into that:
In short - please add the possibility both to select block indention as non-mandatory, and the level of indention on sub-blocks too. That would really improve the readability of the layout. Thanks
Software Engineer, Tools Engineering
UIQ Technologies AB, Sweden