简体   繁体   中英

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?

在此处输入图像描述

I am using Visual Studio Code.

在此处输入图像描述

If you are using visual studio code, try this extension

Prettier - Code formatter

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM