Closed loganknecht closed 5 years ago
I'm closing this issue because it was me being a dingus. I was using JSPretter + TypeScript, and JSPrettier was doing the auto-formatting at the wrong line length. Fixed it by changing the JSPrettier line length support.
An alternate solution is to disable jsprettier and use typescript formatting, but that didn't appear to be working when I disabled it.
Hi there,
I've tried looking around a bit for this, as well as googling. Apologies if this isn't the right place to ask.
Problem
I am using the autoformat feature, but the issue is that it automatically formats aspects over 80 characters. This would be fine, except some text is long and doesn't necessarily benefit from the formatting.
I want to bump the length from 80 to 100 in order to have some more readable code.
Efforts
To my knowledge the solution is go to:
preferences
->Package Settings
->TypeScript
->Plug-in Settings - User
Then in there I should set the
wrap_width
attribute to 100?I did this, and my configuration looks like this:
However this doesn't change anything, and lines are still formatted.
Question
How do I change the auto-formatter to wrap lines at 100 or any other setting instead of the default 80?