From 3b7c4f32fdb3df0bea05421f00f321e0e5eb7ae8 Mon Sep 17 00:00:00 2001 From: David Kwon Date: Tue, 9 Jun 2020 16:07:36 -0400 Subject: [PATCH] Add xml.format.preserveAttributeLineBreaks setting Signed-off-by: David Kwon --- README.md | 1 + package.json | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 976bd72f..902538a8 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ The following settings are supported: Since 0.12.0: * `xml.format.enforceQuoteStyle`: Enforce `preferred` quote style (set by `xml.preferences.quoteStyle`) or `ignore` quote style when formatting. Default is `ignore`. +* `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`. * `xml.preferences.quoteStyle`: Preferred quote style to use for completion: `single` quotes, `double` quotes. Default is `double`. * `xml.preferences.showSchemaDocumentationType`: Specifies the source of the XML schema documentation displayed on hover and completion. Default is `all`. * `xml.symbols.maxItemsComputed`: The maximum number of outline symbols and folding regions computed (limited for performance reasons). Default is `5000`. diff --git a/package.json b/package.json index 16e71e9e..689fd3cd 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,12 @@ "description": "Expand/collapse empty elements.", "scope": "window" }, + "xml.format.preserveAttributeLineBreaks": { + "type": "boolean", + "default": false, + "markdownDescription": "Preserve line breaks that appear before and after attributes. This setting is overridden if `#xml.format.splitAttributes#` is set to `true`.", + "scope": "window" + }, "xml.format.splitAttributes": { "type": "boolean", "default": false, @@ -182,7 +188,7 @@ "Ignore quote style formatting." ], "default": "ignore", - "markdownDescription": "Enforce `preferred` quote style (set by `xml.preferences.quoteStyle`) or `ignore` quote style when formatting. Default is `ignore`", + "markdownDescription": "Enforce `preferred` quote style (set by `#xml.preferences.quoteStyle#`) or `ignore` quote style when formatting. Default is `ignore`", "scope": "window" }, "xml.preferences.quoteStyle": {