Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop ReSharper from putting JavaScript function parameter onto new line

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.

like image 315
Holf Avatar asked May 13 '16 12:05

Holf


1 Answers

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

like image 70
Alexander Kurakin Avatar answered Nov 07 '22 15:11

Alexander Kurakin