Steve
Steve

Reputation: 4453

How to format html elements in one line in SCSS file in Visual Studio Code?

How do I format the html element in scss to be one line?

enter image description here

I am using Visual Studio Code.

enter image description here

Upvotes: 1

Views: 1403

Answers (2)

Costa
Costa

Reputation: 2874

Go to File, Preferences, Keyboard Shortcuts and search for Join Lines. Set up a keybind that you like and then go to your code. Select all your elements then press that keybind. It should be in one line!

Upvotes: 1

mfaisalmjanjua
mfaisalmjanjua

Reputation: 21

If you are using visual studio code, try this extension

Prettier - Code formatter

Upvotes: 2

Related Questions