No, there is no “out of the box” way to force Visual Studio to back out the code this way. It will always separate indentation functional parameters with only one tab.
It turns out that this style complies with Microsoft’s general coding rules, and probably why they wrote it that way. I don’t even care about it, but I also prefer your style.
But it turns out that you only need to manually postpone the first wrapped parameter. Subsequently, when you press Enter , Visual Studio will automatically launch the next line under your first carefully constructed parameter.
Also remember that (if you have already written the method definitions), you can select multiple lines at a time and use the Tab key to align them all. You do not have to do one at a time.
In general, there are, unfortunately, extremely limited code formatting options available for C / C ++ code in Visual Studio. C # programmers get more benefits. You might be able to invest in an add-in or extension, such as Visual Assist X , in which you get more features in the IDE.
Cody gray
source share