Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

quotes

Control the quotes of strings.

Possible values:

  • "alwaysDouble": Always use double quotes. Double quotes in strings will be escaped.
  • "alwaysSingle": Always use single quotes. Single quotes in strings will be escaped.
  • "preferDouble": Use double quotes as possible. However if there're double quotes in strings, quotes will be kept as-is.
  • "preferSingle": Use single quotes as possible. However if there're single quotes in strings, quotes will be kept as-is.

Default value is "alwaysDouble".

This global option can be overridden by different syntax nodes:

  • attrSelector.quotes

Example for "alwaysDouble"

Playground

::before { content: ""; content: "\""; }

Example for "alwaysSingle"

Playground

::before { content: ''; content: '\''; }

Example for "preferDouble"

Playground

::before { content: ""; content: '"'; }

Example for "preferSingle"

Playground

::before { content: ''; content: "'"; }