Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode prettier's printWidth

I'm trying to set different width of row for my VSCode prettier(extension) settings, but without any luck. Tried different variations with prefixes or without in ~root/.vscode/settings.json:

"max-len": 120,
"printWidth": 120
"editor.max-len": 120,
"editor.printWidth": 120
"prettier.max-len": 120,
"prettier.printWidth": 120

none of it respect rules.

How can I solve it?

like image 566
WebArtisan Avatar asked Apr 27 '20 06:04

WebArtisan


1 Answers

  • Did you consider the file extensions Prettier is actually supporting?
  • If yes, when you have the file opened, is "Prettier" selected in the status bar on the bottom right?
  • If yes, open the "Output" tab in VS Code and try to format the file. What do you see as output (you might need to select "Prettier" in the dropdown of the "Output" tab).
like image 197
von_court Avatar answered Oct 12 '22 02:10

von_court