Visual Studio - code formatting (curly braces)
I'm having trouble formatting my code Visual Studio 2013
. Specifically, I have the following problem, when I cut and paste the C ++ / C # code, it reformats like this:
int main() {
...
}
Although I would prefer the following indentation (note the position of the opening curly brace):
int main()
{
...
}
Where can I find the correct indentation setting?
+3
Nick
source
to share
1 answer
Tools -> Options -> Text Editor -> C/C++ -> Formatting -> New Lines
and choose what suits you. Then do the same for the settings C#
.
+2
Zereges
source
to share