1

I'm a beginner web developer and I'm using VScode with Prettier extension. However, I disabled "single attribute per line" function of Prettier but while I'm writing HTML, somehow I still get only single attribute per line. Any suggestions?

rioV8
  • 24,506
  • 3
  • 32
  • 49
  • You mean to say it is getting chopped down right in several lines? – Piyush Pranjal Sep 16 '22 at 17:13
  • If this is the case you can use [Prettier Playground](https://prettier.io/playground/#) to customize your settings. Just change the language from the drop-down and see the result on the right window. – Piyush Pranjal Sep 16 '22 at 17:15
  • Yes, my attributes are getting chopped down in several lines. – Utku Orçan Sep 16 '22 at 22:33
  • Such questions are already asked by several folks. Do check this out you'll get many recommendations [link](https://stackoverflow.com/questions/56291245/how-do-you-stop-prettier-in-vs-code-splitting-attributes-onto-multiple-lines) – Piyush Pranjal Sep 17 '22 at 17:36

1 Answers1

1

Settings > search for singleAttributePerLine in both User & Workspace tabs

Jonathan
  • 2,700
  • 4
  • 23
  • 41