简体   繁体   中英

Webstorm turn off new spaces in anonymous function declaration

eg I have this:

exports.getsertHexId = function (table, hex) {

Webstorm 8's auto-indent is creating the space between the keyword function and the open paren ( .

Its settings spaces options cover:

  • Function declaration parentheses
  • Function call parentheses
  • 'if' parentheses
  • . . .

Confused since this should be covered under function declaration parentheses I thought. Can this be properly configured? Is it a bug?

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.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM