Skip to content

CSS/LessCSS/SASS/SCSS#

Server#

For more information about the LSP server, check css.

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETcss-lsRET.

npm install -g vscode-css-languageserver-bin

Debugger: Not available#

Available configurations#

lsp-css-experimental-custom-data#

Default: nil

A list of JSON file paths that define custom CSS data that loads custom properties, at directives, pseudo classes / elements.


lsp-css-completion-trigger-property-value-completion#

Default: t

By default, VS Code triggers property value completion after selecting a CSS property. Use this setting to disable this behavior.


lsp-css-validate#

Default: t

Enables or disables all validations.


lsp-css-lint-compatible-vendor-prefixes#

Default: ignore

When using a vendor-specific prefix make sure to also include all other vendor-specific properties.


lsp-css-lint-vendor-prefix#

Default: warning

When using a vendor-specific prefix, also include the standard property.


lsp-css-lint-duplicate-properties#

Default: ignore

Do not use duplicate style definitions.


lsp-css-lint-empty-rules#

Default: warning

Do not use empty rulesets.


lsp-css-lint-import-statement#

Default: ignore

Import statements do not load in parallel.


lsp-css-lint-box-model#

Default: ignore


lsp-css-lint-universal-selector#

Default: ignore


lsp-css-lint-zero-units#

Default: ignore

No unit for zero needed.


lsp-css-lint-font-face-properties#

Default: warning


lsp-css-lint-hex-color-length#

Default: error

Hex colors must consist of three or six hex numbers.


lsp-css-lint-arguments-in-color-function#

Default: error

Invalid number of parameters.


lsp-css-lint-unknown-properties#

Default: warning

Unknown property.


lsp-css-lint-valid-properties#

Default: nil

A list of properties that are not validated against the ‘unknownProperties‘ rule.


lsp-css-lint-ie-hack#

Default: ignore

IE hacks are only necessary when supporting IE7 and older.


lsp-css-lint-unknown-vendor-specific-properties#

Default: ignore

Unknown vendor specific property.


lsp-css-lint-property-ignored-due-to-display#

Default: warning


lsp-css-lint-important#

Default: ignore


lsp-css-lint-float#

Default: ignore


lsp-css-lint-id-selector#

Default: ignore

Selectors should not contain IDs because these rules are too tightly coupled with the HTML.


lsp-css-lint-unknown-at-rules#

Default: warning

Unknown at-rule.


lsp-css-trace-server#

Default: off

Traces the communication between VS Code and the CSS language server.



Last update: April 15, 2021