How to change Visual Studio Auto Format

2020-03-01 03:56发布

问题:

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

回答1:

Tools -> Options -> Text Editor -> JavaScript



回答2:

For Visual Studio 2013:

Tools -> Options -> Text Editor -> JavaScript 

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