tags:

views:

160

answers:

2

I really don't like this style of formatting:

Class AwesomeClass
{
    private static void AwesomeMethod()
    {

    }

}

Can I make it format my code like this?

Class AwesomeClass {

    private static void AwesomeMethod() {

    }
}
+15  A: 

Go to tools > Options > Text Editor > C# > Formatting > New Lines

then just uncheck every option you see there.

Matt Greer
Two correct answers, but the other guy has way more rep than you, so you have my vote +1
ckramer
Plus you were 30 seconds sooner :)
zildjohn01
Haha, thanks guys :)
Matt Greer
Here's a secret feature, don't tell anyone: http://stackoverflow.com/posts/3048800/timeline
zildjohn01
+5  A: 

Tools > Options

Check "Show all settings"

Text Editor > C# > Formatting > New Lines

Uncheck the settings for where you want no extra newline added. Personally I always uncheck all items in this category.

Guffa
Thank you so much.
cory