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

原文地址: 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/]

posted on 2009-09-17 01:35  xjb  阅读(400)  评论(0编辑  收藏  举报

导航