Reformat - force long lines to be split Permanently deleted user Created December 13, 2018 12:40 I tried everything, nothing seems to work, line length is set to 120, but reformat does nothing e.g. for long function calls. P.S. This is for Webstorm.
Wrapping and Braces > Function call arguments, Wrap if long?
It does the following
Before:
```
somethingTooLong(a, b, c);
```
After:
```
somethingTooLong(a, b,
c);
```
Desired Result:
```
// If does not reach max-line
somethingTooLong(
a, b, c
);
// Or If would reach max-line
somethingTooLong(
a,
b,
c
);
```
Try Chop down if long - it will format long calls to
I tried, but this is not what I need.
I need the following three variations depending if it fits:
bar('short line1', 'short line2');
bar(
'medium line1', 'medium line2', 'medium line3',
);
bar(
'long line',
'long line1',
'long line2',
'long line3',
'long line4',
'long line5',
'long line6'
);
no, it's not possible