VS Code plugin for CSScomb — CSS coding style formatter
- Press F1 and select
Extensions: Install Extensions. - Search for and select
csscomb.
See the extension installation guide for details.
Press F1 and run the command named CSSComb.
- CSS
- Less
- SCSS
- Sass
csscomb.preset
- Type:
ObjectorString - Defaut:
{}
Config's name. Should be one of the following: csscomb, zen, yandex or an object containing custom configuration.
csscomb.formatOnSave
- Type:
Boolean - Default:
false
Auto format on save.
csscomb.ignoreFilesOnSave
- Type:
Array - Default:
[] - Example:
["variables.less", "mixins/**/*"]
An optional array of glob-patterns to ignore files on save.
csscomb.useLatestCore
- Type:
Boolean - Default:
false
Use CSScomb v4.0.0-alpha.
For example:
{
"csscomb.formatOnSave": true,
"csscomb.preset": "yandex",
"csscomb.preset": {
"remove-empty-rulesets": true,
"always-semicolon": true
}
}For changes keyboard shortcuts, create a new rule in File -> Preferences -> Keyboard Shortcuts:
{
"key": "ctrl+shift+c",
"command": "csscomb.execute"
}Custom configuration is fun and simple: just put .csscomb.json file in the project root or your HOME directory.
You can read more about available options in docs.
See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.