现在的位置: 首页 > 综合 > 正文

web developer tips (49):将JS函数的左大括号置于新行

2013年04月27日 ⁄ 综合 ⁄ 共 379字 ⁄ 字号 评论关闭

原文地址: how to set the editor to always place open braces on new line for functions in JScript?

在 Visual Studio 2008 ,菜单:工具+选项+文本编辑器+Jscript+格式设置,在“新行”选择中,选中“将函数的左大括号置于新行”。
http://www.watch-life.net/visual-studio/set-the-editor-to-always-place-open-braces-on-new-line-for-functions-in-jscript.html
image

也可以将控制块的左大括号置于新行。我喜欢这种大括号置于新行的方式,比较清晰,Visual Studio 2008 在js编辑功能方面加强了不少。

 

更多文章见:守望轩[http://www.watch-life.net/]

抱歉!评论已关闭.