Adjust line break when pressing ALT+Shift+F in VS-Code

Viewed 316

I'm actively using the keybinding ALT+Shift+F for auto formatting my code. I love it and it works well, despite that the line break is set too early.

For example:enter image description here I want MyThemes.light to be in the same line, not in the next. There's still plenty of room to the right, that's just not used. So is there a way to adjust the value at which point the auto format inserts a line break?

Would really love to fix this, as VS-Code is my all time favorite code editor.

1 Answers

The right way to adjust this was setting the Dart: Line Length paramter in the VS-Code Settings. The auto-formatter uses this for making proper line breaks.

The default value 80 seems a bit low on 16:9 monitors and bigger displays. Maybe someone else will find this useful.

Related