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.

Holf
  • 5,605
  • 3
  • 42
  • 63

1 Answers1

39

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

Alexander Kurakin
  • 13,373
  • 2
  • 33
  • 29