简体   繁体   中英

Visual Studio Code Will Not Format CSS Document

When editing HTML with VSCode in Windows 10, The right-click context menu offers to "Format Document". But not when editing a CSS document. How do I format CSS documents?

Try installing https://marketplace.visualstudio.com/items?itemName=aeschli.vscode-css-formatter It just adds the functionality to format.css files and the shortcut stays the same Alt+Shift+F.

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