- Code: Select all
/Indent Strings = "{"
/Unindent Strings = "}"
This provides me with automatically indented code that looks like the following:
- Code: Select all
void blahblahdeblah()
{
if (blahblahagainblah)
{
asdfasdf();
}
haveacow();
}
This is all well and good, but I've just been handed a project where I need to have the braces indented to match the enclosing code. This means the previous code should appear as follows:
- Code: Select all
void blahblahdeblah()
{
if (blahblahagainblah)
{
asdfasdf();
}
haveacow();
}
I've been looking all over the place, including this forum, for information on how to do this, and the closest I can get is to use the external Artistic Style application to range over my code and redo it. I'd much rather have this done as I go.
Is there something I can set to have the indention level done starting with the indent string, rather than the line after it? Thanks.
Me



