Visual studio code CSS indentation and formatting

后端 未结 10 1242
梦毁少年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:08

    There are several to pick from in the gallery but the one I'm using, which offers considerable level of configurability still remaining unobtrusive to the rest of the settings is Beautify by Michele Melluso. It works on both CSS and SCSS and lets you indent 3 spaces keeping the rest of the code at 2 spaces, which is nice.

    You can snatch it from GitHub and adapt it yourself, should you feel like it too.

提交回复
热议问题