Is there any way to change Visual Studio Auto formatting options? Like VS by default uses close bracket format for Javascripts.
有没有办法更改Visual Studio自动格式化选项?与VS一样,默认情况下使用Javascripts的近括号格式。
2 个解决方案
#1
Tools -> Options -> (from the list at the left of the Options Screen) Text Editor -> JScript
工具 - >选项 - >(从选项屏幕左侧的列表中)文本编辑器 - > JScript
#2
For Visual Studio 2013:
对于Visual Studio 2013:
Tools -> Options -> Text Editor -> JavaScript
There you can can change formatting options for JavaScript.
在那里,您可以更改JavaScript的格式选项。
For open brace on new line for function:
对于新功能的开放式支撑:
Tools -> Options -> Text Editor -> JavaScript -> Formatting -> New Lines
#1
Tools -> Options -> (from the list at the left of the Options Screen) Text Editor -> JScript
工具 - >选项 - >(从选项屏幕左侧的列表中)文本编辑器 - > JScript
#2
For Visual Studio 2013:
对于Visual Studio 2013:
Tools -> Options -> Text Editor -> JavaScript
There you can can change formatting options for JavaScript.
在那里,您可以更改JavaScript的格式选项。
For open brace on new line for function:
对于新功能的开放式支撑:
Tools -> Options -> Text Editor -> JavaScript -> Formatting -> New Lines