gpt4 book ai didi

visual-studio-2010 - vs2010中的javascript缩进

转载 作者:行者123 更新时间:2023-12-01 09:38:49 24 4
gpt4 key购买 nike

大家好我想知道如何更改 vs2010 的缩进设置所以不要这样做:

function test () {
}

它会这样做:

function test ()
{

}

它打扰了我!

谢谢

最佳答案

在 Visual Studio 2010 中,转到:

  1. 工具 > 选项。
  2. 展开文本编辑器节点并选择JScript。 (又名 JavaScript)。
  3. 在“格式”下,勾选“将左大括号放在函数的新行上”复选框。

Screenshot http://www.freeimagehosting.net/uploads/cd7619316f.png

关于visual-studio-2010 - vs2010中的javascript缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3043002/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com