视觉工作室中的功能空间 [英] space after function in visual studio ide
本文介绍了视觉工作室中的功能空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何设置visual studio中的设计,以便在我的javascript函数后放置一个空格?
How can I set up the designed in visual studio to put a space after my javascript functions?
目前当我按下返回键时我得到了这个
At present when I press the return key I get this
var myfunc = function() { .... };
我想要这个
var myfunc = function () { .... };
知道它的设置但无法找到它 - 将有助于我的JSlinting!
Know its a setting somewhere but cant find it - will help with my JSlinting!
推荐答案
在VS 2010中,你不能。
In VS 2010 you can't.
您所拥有的选项位于选项 - >文本编辑器 - > JScript - >格式化,但这不是可用的选项之一。
The options you have are found at "Options-> Text Editor -> JScript -> Formatting", but that is not one of the options available.
以下是您的选项:
- 自动格式化
- 输入格式已完成的行
- 格式已完成的声明;
- 格式已完成阻止}
- 粘贴时的格式
- Automatic Formatting
- Format completed line on Enter
- Format completed statement on ;
- Format completed block on }
- Format on paste
- 在新行上放置左大括号以便函数
- 放置左大括号控制块的新行
- 在逗号分隔符后插入空格
- 在'for'st中分号后插入空格atement
- 在二元运算符之前和之后插入空格
- 在控制流语句中的关键字之后插入空格
- Insert space after comma delimiter
- Insert space after semicolon in 'for' statement
- Insert space before and after binary operators
- Insert space after keywords in control flow statements
这篇关于视觉工作室中的功能空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文