Tip #49 Did you know… how to set the editor to always place open braces on new line for functions in JScript?


In Visual Studio, click Tools -> Options. In the Options dialog on the left pane select Text editor -> JScript -> Formatting.

Check Place open brace on new line for functions.

image

 

Deepak Verma
SDET | Visual Web Developer

Comments (4)

  1. What's New says:

    In Visual Studio, click Tools -> Options. In the Options dialog on the left pane select Text editor

  2. Andy says:

    barf … spew your newline bracketing hate speech somewhere else.

  3. My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. Sorry about the long pause between posts. That work thing just got in the way too much. Miguel de Icaza announced that Mono 2.4 and

  4. In one of Doug Crockford’s recent talks he made a very convincing case that unlike other Algol/C-derived languages, in javascript the correct placing of braces is not simply a matter of style. Because javascript  sometimes interprets a new line as the end of a statement, there are cases where adding a new line is the wrong thing to do