Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

Is there a setting in VS 2010 to change the appearance of code when auto formatting?

For example, if you prefer
C#
public void SomeMethod(int someparameter) {
   useful stuff
}

over

public void SomeMethod(int someparameter)
{
   useful stuff
}

I know there is in CodeDom.
Posted
Updated 7-Sep-11 2:27am
v2

1 solution

Yes there is. Just open from menu Tools/Options and select Text Editor/C#/Formatting and go through the choices in the inner nodes.
 
Share this answer
 
Comments
#realJSOP 7-Sep-11 8:34am    
5 - proposed as answer
Wendelius 7-Sep-11 8:36am    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900