code formatting - Visual Studio - "{ }" settings -


Seriously, I do not know what Google should do here, I like writing code like Java :

  if (condition == true) {doSomeStuff (); }  

But VisualStudio does "help" me with my "style", which I do not like and I am unable to change (after seeing all the settings to be frustrated After)

  if (condition == true) {DoStuff (); }  

Let me clearly say "{" char should be in the same line where the condition is ...

I am using MS Visual Studio 2010 Professional

Any help appreciated!

"post-text" itemprop = "text">

Tools> Options> Text Editor> [Language, ie: C #]> Formatting> New Lines

The place where you can set your new line option for braces.


Comments