views:

66

answers:

2

hallo all i was wondering how i can change the indentation settings of vs2010 so instead of it doing this:

function test () {
}

it will do this:

function test ()
{

}

its bugging me out!

thank you

A: 

Tools > Options

Check "Show all settings"

Text editor > JScript > Formatting

Uncheck "Place open brace on new line for functions"

Guffa
+2  A: 

In Visual Studio 2010, go:

  1. Tools > Options.
  2. Expand the Text Editor node and select JScript. (a.k.a JavaScript).
  3. Under Formatting, tick the "Place open brace on new line for functions" checkbox.

Screenshot

Dennis Roche
thank you very much
guy schaller