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

singleLineTopLevelDeclarations

Control whether to force to format all top-level declarations on a single line.

When this option is true, trailing semicolons are removed.

Most of the time, you don't need to set this option, because declarations at top level are invalid, but if you're formatting HTML's style attribute, you may want to set this to true.

Default value is false.

Example for false

Playground

width: 100px; height: 100px;

Example for true

Playground

width: 100px; height: 100px