Tanmoy
Tanmoy

Reputation: 45682

How to change Visual Studio Auto Format

Is there any way to change Visual Studio Auto formatting options? Like VS by default uses close bracket format for Javascripts.

Upvotes: 38

Views: 46720

Answers (2)

Dave Markle
Dave Markle

Reputation: 97811

Tools -> Options -> Text Editor -> JavaScript

Upvotes: 40

Habib
Habib

Reputation: 223372

For Visual Studio 2013:

Tools -> Options -> Text Editor -> JavaScript 

enter image description here

There you can can change formatting options for JavaScript.

For open brace on new line for function:

Tools -> Options -> Text Editor -> JavaScript -> Formatting -> New Lines

Upvotes: 26

Related Questions