How to change Visual Studio Auto Format

后端 未结 2 1867
天命终不由人
天命终不由人 2021-01-03 18:24

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

2条回答
  •  时光说笑
    2021-01-03 18:49

    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
    

提交回复
热议问题