2018-01-27 20:27:27 -05:00
# XML Tools for Visual Studio Code
2018-05-25 19:36:22 -04:00
[](https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml)
[](https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml)
[](https://twitter.com/DotJoshJohnson)
2018-05-25 20:03:53 -04:00
[](https://gitter.im/vscode-xml/vscode-xml)
[](https://beerpay.io/DotJoshJohnson/vscode-xml)
2018-01-27 17:50:50 -05:00
## Features
2018-01-27 20:27:27 -05:00
* [XML Formatting ](https://github.com/DotJoshJohnson/vscode-xml/wiki/xml-formatting )
* [XML Tree View ](https://github.com/DotJoshJohnson/vscode-xml/wiki/xml-tree-view )
* [XPath Evaluation ](https://github.com/DotJoshJohnson/vscode-xml/wiki/xpath-evaluation )
* [XQuery Linting ](https://github.com/DotJoshJohnson/vscode-xml/wiki/xquery-linting )
* [XQuery Execution ](https://github.com/DotJoshJohnson/vscode-xml/wiki/xquery-script-execution )
* [XQuery Code Completion ](https://github.com/DotJoshJohnson/vscode-xml/wiki/xquery-code-completion )
2018-01-27 17:50:50 -05:00
## Requirements
2018-05-02 22:37:40 -04:00
* VS Code `1.22.2` or higher
2018-01-27 17:50:50 -05:00
## Extension Settings
2018-05-02 22:37:40 -04:00
* **`xmlTools.enableXmlTreeView` :** Enables the XML Tree View for XML documents.
* **`xmlTools.enableXmlTreeViewMetadata` :** Enables attribute and child element counts in the XML Document view.
* **`xmlTools.enableXmlTreeViewCursorSync` :** Enables auto-reveal of elements in the XML Document view when a start tag is clicked in the editor.
2018-05-29 21:58:41 -04:00
* **`xmlTools.enforcePrettySelfClosingTagOnFormat` :** Ensures a space is added before the forward slash at the end of a self-closing tag.
2018-05-02 22:37:40 -04:00
* **`xmlTools.ignoreDefaultNamespace` :** Ignore default xmlns attributes when evaluating XPath.
* **`xmlTools.persistXPathQuery` :** Remember the last XPath query used.
* **`xmlTools.removeCommentsOnMinify` :** Remove XML comments during minification.
2018-07-10 16:54:24 +05:30
* **`xmlTools.splitAttributesOnFormat` :** Put each attribute on a new line when formatting XML. Overrides `xmlTools.splitXmlnsOnFormat` if set to `true` . (V2 Formatter Only)
2018-05-02 22:37:40 -04:00
* **`xmlTools.splitXmlnsOnFormat` :** Put each xmlns attribute on a new line when formatting XML.
* **`xmlTools.xmlFormatterImplementation` :** Supported XML Formatters: `classic` , `v2` .
* **`xmlTools.xqueryExecutionArguments` :** Arguments to be passed to the XQuery execution engine.
* **`xmlTools.xqueryExecutionEngine` :** The full path to the executable to run when executing XQuery scripts.
2018-01-27 17:50:50 -05:00
## Release Notes
2018-01-27 20:27:27 -05:00
Detailed release notes are available [here ](https://github.com/DotJoshJohnson/vscode-xml/releases ).
2018-01-27 17:50:50 -05:00
2018-01-27 20:27:27 -05:00
## Issues
Run into a bug? Report it [here ](https://github.com/DotJoshJohnson/vscode-xml/issues ).
2018-05-03 22:53:05 -04:00
## Icon Credits
Icons used in the XML Tree View are used under the Creative Commons 3.0 BY license.
* "Code" icon by Dave Gandy from www.flaticon.com
* "At" icon by FreePik from www.flaticon.com