It's not a bug. If you like to avoid inserting a white space after 'function' keyword in callbacks/anonymous functions, please make sure to uncheck 'In function expression' checkbox in Settings/Editor/Code Style/JavaScript/Spaces, Before Parentheses. "function declaration parentheses" doesn't affect callbacks formatting.
@Elena that works, thanks. Could we rename the option "In function expression" to something more obvious? Say, "Anonymous function declaration parentheses"?
It's not a bug. If you like to avoid inserting a white space after 'function' keyword in callbacks/anonymous functions, please make sure to uncheck 'In function expression' checkbox in Settings/Editor/Code Style/JavaScript/Spaces, Before Parentheses. "function declaration parentheses" doesn't affect callbacks formatting.
Ahh, I missed that one! Thank you!
@Elena that works, thanks. Could we rename the option "In function expression" to something more obvious? Say, "Anonymous function declaration parentheses"?
Please feel free to create a request for this in youtrack, https://youtrack.jetbrains.com/issues/WEB
Hi!
is there a way to format an space after the "function" keyword?
I need this for *.vue
perhaps someone knows about an config-file for this kind of scripts?
thx
Enabling Settings | Editor | Code Style | JavaScript | Spaces | Before Parentheses | In function expression should do the thing
Thx .it works ;-)