2

When I type this In visual studio

if(){
}

It automatically changes it to:

if()
{
}

How can I make VS keep the first indentation?

3
  • stackoverflow.com/questions/10631091/… Commented Mar 27, 2014 at 8:43
  • You may want to check the Microsoft Guidelines. Although they are not binding, the C# community is pretty much set on using them and going against it will make your code stand out. Which is not actually a good thing, guidelines exist for a reason. Commented Mar 27, 2014 at 8:45
  • That first style is a throwback to the days of 25 line text terminals (when programmers were real programmers....). Commented Mar 27, 2014 at 8:46

1 Answer 1

6

Tools> Options> Text Editor> C#> Formatting> New Lines

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.