Stop ReSharper from putting JavaScript function parameter onto new line

1.1k Views Asked by At

How can I stop ReSharper formatting from turning this:

define(['Spec'], function (Spec) {

});

into this:

define(['Spec'],
    function(Spec) {

    });

I've tried various combinations of settings but have not hit upon the right one yet.

1

There are 1 best solutions below

0
On BEST ANSWER

Try changing the following setting to "Simple wrap": ReSharper | Options | Code Editing | JavaScript | Formatting Style | Line Breaks | Wrapping and chopping | Wrap invocation arguments