visual-studio 如何更改 Visual Studio 自动格式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 
原文地址: http://stackoverflow.com/questions/388268/
Warning: these are provided under cc-by-sa 4.0 license.  You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change Visual Studio Auto Format
提问by Tanmoy
Is there any way to change Visual Studio Auto formatting options? Like VS by default uses close bracket format for Javascripts.
有什么方法可以更改 Visual Studio 自动格式选项吗?像 VS 一样,默认情况下,Javascript 使用右括号格式。
回答by Dave Markle
Tools -> Options -> Text Editor -> JavaScript
工具 -> 选项 -> 文本编辑器 -> JavaScript
回答by Habib
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

