All,
I have a questions that might be trivial to those who know a bit more about MS Visual Studio (MSVS) than me; however, I think that I lack the correct terminology to find what I want using Google.
Here goes:
There are quite a few styles for indenting that could be used in C++ projects:
http://en.wikipedia.org/wiki/Indent_style
I would like to use the Allman style of indenting. As an example, see:
if (isValid)
{
DoSomething();
}
In MSVS, when you close the lower brace, the line of the opening brace is shown at the very bottom of the IDE, which can be very helpful to know what you are closing if you are using the K&R style where the opening brace resides on the same line as the if statement.
Unfortunately, in the Allman style, all that is shown is the opening brace, which is not very useful. As such, I was trying to find a setting or write a custom add-in that would display the previous line instead of the line that contains the {. Given that MSVS appears to use the Allman as default, it seems that this shouldn't be a difficult thing to accomplish; however, I don't seem to be able to find anything on it.
If anybody can provide some insight on how to accomplish this change of the auto-display behavior, I would greatly appreciate it.
I have a questions that might be trivial to those who know a bit more about MS Visual Studio (MSVS) than me; however, I think that I lack the correct terminology to find what I want using Google.
Here goes:
There are quite a few styles for indenting that could be used in C++ projects:
http://en.wikipedia.org/wiki/Indent_style
I would like to use the Allman style of indenting. As an example, see:
if (isValid)
{
DoSomething();
}
In MSVS, when you close the lower brace, the line of the opening brace is shown at the very bottom of the IDE, which can be very helpful to know what you are closing if you are using the K&R style where the opening brace resides on the same line as the if statement.
Unfortunately, in the Allman style, all that is shown is the opening brace, which is not very useful. As such, I was trying to find a setting or write a custom add-in that would display the previous line instead of the line that contains the {. Given that MSVS appears to use the Allman as default, it seems that this shouldn't be a difficult thing to accomplish; however, I don't seem to be able to find anything on it.
If anybody can provide some insight on how to accomplish this change of the auto-display behavior, I would greatly appreciate it.