Stop ReSharper from putting JavaScript function parameter onto new line
Asked Answered
M

1

21

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.

Manse answered 13/5, 2016 at 12:40 Comment(0)
P
39

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

Pedigo answered 13/5, 2016 at 14:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.