5

I am in trouble with the Visual Studio 2013 code formatting. In particoular I have the following problem: when I cut and paste some C++/C# code it is re-formatted as follow:

int main() {
  ...
}

While I would prefer the following indentation (please note the position of the opening curly brace):

int main()
{
  ...
}

Where can I find the proper indentation setting?

1
  • 1
    Egyptian braces, you can change that. Spend some time in Tools > Options > Text Editor to pick your preferences. Commented Jun 3, 2015 at 15:43

1 Answer 1

3

Tools -> Options -> Text Editor -> C/C++ -> Formatting -> New Lines and choose what suits you. Then, do the same thing for C# settings.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.