web developer tips (49):将JS函数的左大括号置于新行
2009-09-17 – 10:34原文地址: 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
![]()
也可以将控制块的左大括号置于新行。我喜欢这种大括号置于新行的方式,比较清晰,Visual Studio 2008 在js编辑功能方面加强了不少。
你可能也会喜欢以下文章:
永久链接(Permalink):http://www.watch-life.net/visual-studio/set-the-editor-to-always-place-open-braces-on-new-line-for-functions-in-jscript.html
分类: Visual Studio
分享收藏本文


网友评论( 1 )