-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I would like CodeFormatter to help me with spacing and indentation but not line breaks. I'd like it to
- Preserve all line breaks I enter
- Prevent the formatter from adding line breaks
So if I write:
a[x_]:=Block[{b},
b=2;x^2+b
]
I would like it to return
a[x_] := Block[{b},
b = 2; x^2 + b
]
i.e. add spacing and indentation, but do not add or remove line breaks
Is there a way to do this? I tried $DefaultBreakLinesMethod=None, but it appears that symbol has to be set to a string. And I would like to apply these settings in VS Code so I can use "Format Document" or "Format Selection".
Metadata
Metadata
Assignees
Labels
No labels