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.compatibility
Type: string
cleanCSS.formatterOptions.format.breaks
Type: objectcleanCSS.formatterOptions.format.breakWith
Type: stringcleanCSS.formatterOptions.format.indentBy
Type: numbercleanCSS.formatterOptions.format.indentWith
Type: stringcleanCSS.formatterOptions.format.spaces
Type: objectcleanCSS.formatterOptions.format.wrapAt
Type: number or booleancleanCSS.formatterOptions.format.semicolonAfterLastProperty
Type: boolean
cleanCSS.formatterOptions.inline
Type: Array
cleanCSS.formatterOptions.level.1
Type: objectcleanCSS.formatterOptions.level.2
Type: object
See CHANGELOG.md for more info.
- "Clean CSS: Format Document" command to format the whole document using the
settings.json
settings - "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 Document
command. - Clean CSS output channel to see more information about formatting. Such as some error and warning messages.