Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 717 Bytes

File metadata and controls

55 lines (44 loc) · 717 Bytes

tabWidth

Specifies amount of spaces to be used for indentation.

Option value

A number specifying the number of spaces per indentation level.

This option is ignored when useTabs option is enabled.

Indenting by 2 spaces (default)

SELECT
  *,
FROM
  (
    SELECT
      column1,
      column5
    FROM
      table1
  ) a
  JOIN table2
WHERE
  column6
  AND column7
GROUP BY column4

Indenting by 4 spaces

Using tabWidth: 4:

SELECT
    *,
FROM
    (
        SELECT
            column1,
            column5
        FROM
            table1
    ) a
    JOIN table2
WHERE
    column6
    AND column7
GROUP BY column4

Indenting with tabs

See useTabs option.