CSS file optimizer. Using Clean CSS and adapting it to work as an extension of VSCode.
Note: The functionality of this extension depends entirely on Clean CSS. Thanks to jakubpawlowicz for creating and managing it!
- Compress CSS files using Clean CSS optimizer.
- Quickly format using different presets, in the editor context menu.
- Use "Clean CSS: Format Document" command (Shift+Alt+F) to format using user settings.
cleanCSS.debugTool.showOutput: Display information about formatter usage on an output channel.
All options in this group go directly to the formatter. See Clean CSS: Options for more info about it.
cleanCSS.formatterOptions.compatibilityType: string
cleanCSS.formatterOptions.format.breaksType: objectcleanCSS.formatterOptions.format.breakWithType: stringcleanCSS.formatterOptions.format.indentByType: numbercleanCSS.formatterOptions.format.indentWithType: stringcleanCSS.formatterOptions.format.spacesType: objectcleanCSS.formatterOptions.format.wrapAtType: number or booleancleanCSS.formatterOptions.format.semicolonAfterLastPropertyType: boolean
cleanCSS.formatterOptions.inlineType: Array
cleanCSS.formatterOptions.level.1Type: objectcleanCSS.formatterOptions.level.2Type: object
See CHANGELOG.md for more info.
- "Clean CSS: Format Document" command to format the whole document using the
settings.jsonsettings - "Clean CSS: Fast Compact" command to compact the document into a single line, using default settings.
- "Clean CSS: Fast Beautify" Format command to format the document in a nice way, using default settings.
- "Clean CSS: Fast Keep Breaks" Format command to format the document in a compact but more readable way, using default settings.
- "Format Document (Clean CSS)" submenu in the editor context menu with all 4 commands listed above.
- Key binding: "Format Document" (Ctrl+Shift+F) to use
Clean CSS: Format Documentcommand. - Clean CSS output channel to see more information about formatting. Such as some error and warning messages.

