Skip to content

Commit 457d2d5

Browse files
dkwon17fbricon
authored andcommitted
Add xml.format.preserveAttributeLineBreaks setting
Signed-off-by: David Kwon <dakwon@redhat.com>
1 parent f5e2cdc commit 457d2d5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ The following settings are supported:
7878

7979
Since 0.12.0:
8080
* `xml.format.enforceQuoteStyle`: Enforce `preferred` quote style (set by `xml.preferences.quoteStyle`) or `ignore` quote style when formatting. Default is `ignore`.
81+
* `xml.format.preserveAttributeLineBreaks`: Preserve line breaks that appear before and after attributes. This setting is overridden if `xml.format.splitAttributes` is set to `true`. Default is `false`.
8182
* `xml.preferences.quoteStyle`: Preferred quote style to use for completion: `single` quotes, `double` quotes. Default is `double`.
8283
* `xml.preferences.showSchemaDocumentationType`: Specifies the source of the XML schema documentation displayed on hover and completion. Default is `all`.
8384
* `xml.symbols.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons). Default is `5000`.

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@
117117
"description": "Expand/collapse empty elements.",
118118
"scope": "window"
119119
},
120+
"xml.format.preserveAttributeLineBreaks": {
121+
"type": "boolean",
122+
"default": false,
123+
"markdownDescription": "Preserve line breaks that appear before and after attributes. This setting is overridden if `#xml.format.splitAttributes#` is set to `true`.",
124+
"scope": "window"
125+
},
120126
"xml.format.splitAttributes": {
121127
"type": "boolean",
122128
"default": false,
@@ -182,7 +188,7 @@
182188
"Ignore quote style formatting."
183189
],
184190
"default": "ignore",
185-
"markdownDescription": "Enforce `preferred` quote style (set by `xml.preferences.quoteStyle`) or `ignore` quote style when formatting. Default is `ignore`",
191+
"markdownDescription": "Enforce `preferred` quote style (set by `#xml.preferences.quoteStyle#`) or `ignore` quote style when formatting. Default is `ignore`",
186192
"scope": "window"
187193
},
188194
"xml.preferences.quoteStyle": {

0 commit comments

Comments
 (0)