Webstorm在匿名函数声明中关闭了新空格 [英] Webstorm turn off new spaces in anonymous function declaration
本文介绍了Webstorm在匿名函数声明中关闭了新空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
e.g。我有这个:
exports.getsertHexId = function (table, hex) {
Webstorm 8的自动缩进是在关键字 function
和open paren <$之间创建空格c $ c>(。
Webstorm 8's auto-indent is creating the space between the keyword function
and the open paren (
.
其设置空间选项包括:
- 函数声明括号
- 函数调用括号
- 'if'括号
- 。 ..
- Function declaration parentheses
- Function call parentheses
- 'if' parentheses
- . . .
因为这应该包含在我认为的函数声明括号中。这可以正确配置吗?这是一个错误吗? / p>
Confused since this should be covered under function declaration parentheses I thought. Can this be properly configured? Is it a bug?
推荐答案
进一步向下滚动,它是在函数表达式中选项。因为 function(){.. 。}
是一个表达式,它返回一个值,该值是一个函数。
Scroll down further and it's the option "In function expression." Because function() { ... }
is an expression which returns a value, that value being a function.
这篇关于Webstorm在匿名函数声明中关闭了新空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文