Code Style JavaScript: anomymous functions, no space before parenthesis

I've gone through Settings/Code Style/JavaScript numerous times, but the reformatter insisits on changing:

function() {

into

function () {


(a space is always inserted between 'function' and '(')

Is there any way to change this?

Using PhpStorm PS-138.1751
Build #PS-138.1751, built on August 21, 2014
JRE: 1.6.0_65-b14-462-11M4609 x86_64
JVM: Java HotSpot(TM) 64-Bit Server VM by Apple Inc.

thanks

2 comments
Comment actions Permalink

Try unchecking 'in function expression' in Settings/Code Style/JavaScript/Spaces/Before Parentheses

1
Comment actions Permalink

That's it, thank you!

0

Please sign in to leave a comment.