Prettier extention formatting is going weird

Viewed 124

When I write a long paragraph it looks normal. But after saving (formatting) it looks weird. FYI word-wrapping and format on save was on.

This is before formatting

This is after formatting

Please help.

2 Answers

VS code wraps long lines if they exceed a certain length if "format on save" is on. To disable it, set the maximum length to 0.

Press Ctrl+Shift+P to bring up the command palette and run the Preferences: Open JSON Settings command. Add the following line:

"html.format.wrapLineLength": 0

Okey, It's the window width. If I maximize vscode the promlem is gone.

Related