Visual studio code CSS indentation and formatting

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

    To format the code in Visual Studio when you want, press: (Ctrl + K) & (Ctrl + F)

    The auto formatting rules can be found and changed in: Tools/Options --> (Left sidebar): Text Editor / CSS (or whatever other language you want to change)

    For the CSS language the options are unfortunately very limited. You can also make some changes in: .../ Text Editor / All Languages

提交回复
热议问题