Skip to content

Comma Rules

Comma rules control the way comma-separated lists will be formatted.

layoutrules-1

By default, a comma-separated list is placed on a single line with no spaces around the comma symbol.

Spaces around comma placement

Specifies the space that to be set in front and/or after the comma symbol

Setting Description
Space before Sets one space in front of the comma
Space after Sets one space after the comma

Breaks placementSpecifies the position of the comma symbol and whether the comma list shell is split into multiple lines.

Setting Description
Newline before Each comma is placed on a newline.
Newline after Each comma is placed at the end of the line.
Minimum Items Specifies the least number of items that the list contains, in order to be broken into multiple lines.

Comma alignment

The comma alignment rule is only active when the rule for newline in front of the comma symbol is active.

Setting Description
Place aligned with the statement The comma is left aligned with the statement start.
Place next to column The comma is placed close to the column.

Allow breaks if take part in an expression

Specifies if the layout rules for breaking comma list in multiple lines to be applied if the comma list takes part in arithmetic or logical expression.

Setting Description
Allow breaks Select this option to break comma lists that appears in arithmetic or logical expression.

Allow breaks in the SELECT listSpecify if the layout rules for breaking the comma list in multiple lines are to be applied on the SELECT column list.

Setting Description
Allow breaks Allow each column in the SELECT list to be placed on a separate line.

Allow breaks in the GROUP BY list

Specifies if the layout rules for breaking comma list in multiple lines to be applied on GROUP BY clause column list.

Setting Description
Allow breaks Allow each element in the GROUP BY list to be placed on a separate line.

Allow breaks in ORDER BY list

Specifies if the layout rules for breaking comma list in multiple lines to be applied on ORDER BY clause list.

Setting Description
Allow breaks Allow each element in the ORDER BY list to be placed on a separate line.

layoutrules-2