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

preferSingleLine

Control whether items should be placed on single line as possible, even they’re originally on multiple lines.

Default value is false.

This global option can be overridden by different syntax nodes:

  • selectors.preferSingleLine (blockSelectorLinebreak must be "consistent", otherwise this will be ignored)
  • functionArgs.preferSingleLine
  • sassContentAtRule.preferSingleLine
  • sassIncludeAtRule.preferSingleLine
  • sassMap.preferSingleLine
  • sassModuleConfig.preferSingleLine
  • sassParams.preferSingleLine
  • lessImportOptions.preferSingleLine
  • lessMixinArgs.preferSingleLine
  • lessMixinParams.preferSingleLine

Given the following example CSS:

a { color: rgb( 0, 0, 0 ); }

Example for false

Playground

a { color: rgb( 0, 0, 0 ); }

Example for true

Playground

a { color: rgb(0, 0, 0); }