Visual studio code CSS indentation and formatting

后端 未结 10 1248
梦毁少年i
梦毁少年i 2020-12-12 18:30

I\'d like to know if there is any way to activate auto indent a CSS file in visual studio code with the shortcut ALT+SHIFT+F?

It\'s

10条回答
  •  一个人的身影
    2020-12-12 19:26

    I recommend using Prettier as it's very extensible but still works perfectly out of the box:

    1. CMD + Shift + P -> Format Document
    

    or

    1. Select the text you want to Prettify
    2. CMD + Shift + P -> Format Selection
    

提交回复
热议问题