Update options and docs

This commit is contained in:
Faheel Ahmad 2017-11-03 20:12:18 +05:30
parent 93aae32f8c
commit d2b92d2b8a
2 changed files with 68 additions and 1 deletions

View File

@ -11692,6 +11692,7 @@ Maximum characters per line (0 disables) (Supported by Pretty Diff)
| `identifiers` | :white_check_mark: | | `identifiers` | :white_check_mark: |
| `indent_size` | :white_check_mark: | | `indent_size` | :white_check_mark: |
| `keywords` | :white_check_mark: | | `keywords` | :white_check_mark: |
| `reindent` | :white_check_mark: |
**Description**: **Description**:
@ -11834,6 +11835,32 @@ Change case of keywords (Supported by sqlformat)
} }
``` ```
##### [Reindent](#reindent)
**Namespace**: `sql`
**Key**: `reindent`
**Default**: `true`
**Type**: `boolean`
**Supported Beautifiers**: [`sqlformat`](#sqlformat)
**Description**:
Change indentations of the statements. Uncheck this option to preserve indentation (Supported by sqlformat)
**Example `.jsbeautifyrc` Configuration**
```json
{
"sql": {
"reindent": true
}
}
```
#### [SVG](#svg) #### [SVG](#svg)
**Supported Beautifiers**: [`Pretty Diff`](#pretty-diff) **Supported Beautifiers**: [`Pretty Diff`](#pretty-diff)
@ -20583,6 +20610,32 @@ Indentation size/length (Supported by sqlformat)
} }
``` ```
##### [Reindent](#reindent)
**Namespace**: `sql`
**Key**: `reindent`
**Default**: `true`
**Type**: `boolean`
**Supported Beautifiers**: [`sqlformat`](#sqlformat)
**Description**:
Change indentations of the statements. Uncheck this option to preserve indentation (Supported by sqlformat)
**Example `.jsbeautifyrc` Configuration**
```json
{
"sql": {
"reindent": true
}
}
```
##### [Keywords](#keywords) ##### [Keywords](#keywords)
**Namespace**: `sql` **Namespace**: `sql`

View File

@ -6914,6 +6914,20 @@
"namespace": "sql" "namespace": "sql"
} }
}, },
"reindent": {
"type": "boolean",
"default": true,
"description": "Change indentations of the statements. Uncheck this option to preserve indentation (Supported by sqlformat)",
"title": "Reindent",
"beautifiers": [
"sqlformat"
],
"key": "reindent",
"language": {
"name": "SQL",
"namespace": "sql"
}
},
"keywords": { "keywords": {
"type": "string", "type": "string",
"default": "upper", "default": "upper",
@ -9434,4 +9448,4 @@
} }
} }
} }
} }