I'm currently using Ultra-Edit 32 v12.10a to write C++ code, and I have the following lines in my wordfile.txt file:
This provides me with automatically indented code that looks like the following:
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:
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
Code: Select all
/Indent Strings = "{"
/Unindent Strings = "}"
Code: Select all
void blahblahdeblah()
{
if (blahblahagainblah)
{
asdfasdf();
}
haveacow();
}
Code: Select all
void blahblahdeblah()
{
if (blahblahagainblah)
{
asdfasdf();
}
haveacow();
}
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