Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If statements suddenly get formatted on next line by Visual Studio 2010

Hello suddenly VS2010 has started formatting my if statements in a way that I don't want and I don't know how to turn it of..I Used to format if statements without accolades like this.

if (true) DoThis();

But now VS2010 formats that as follows all the time.

if (true)
    DoThis();

I Don't want this and it drives me nuts. I Don't have any plugins installed. Can anybody help me ? Where I can adjust this setting ?

like image 508
Julian de Wit Avatar asked Jun 08 '12 17:06

Julian de Wit


1 Answers

It was

options->text editor->c#->Wrapping->Leave statements and member declarations on same line.

(must be turned on).

Steve B you can have the Kudus because you directed me to "almost" the right option.

like image 157
Julian de Wit Avatar answered Oct 30 '22 06:10

Julian de Wit