Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>XML ToolsNew to Visual Studio Code? Get it now.
XML Tools

XML Tools

Josh Johnson

|
6,944,720 installs
| (81) | Free
XML Formatting, XQuery, and XPath Tools for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

XML Tools for Visual Studio Code

Visual Studio Marketplace Visual Studio Marketplace

Beerpay

Features

  • XML Formatting
  • XML Tree View
  • XPath Evaluation
  • XQuery Linting
  • XQuery Execution
  • XQuery Code Completion

Requirements

  • VS Code 1.22.2 or higher

Extension Settings

  • 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.
  • xmlTools.enforcePrettySelfClosingTagOnFormat: Ensures a space is added before the forward slash at the end of a self-closing tag.
  • xmlTools.ignoreDefaultNamespace: Ignore default xmlns attributes when evaluating XPath.
  • xmlTools.persistXPathQuery: Remember the last XPath query used.
  • xmlTools.removeCommentsOnMinify: Remove XML comments during minification.
  • xmlTools.splitAttributesOnFormat: Put each attribute on a new line when formatting XML. Overrides xmlTools.splitXmlnsOnFormat if set to true. (V2 Formatter Only)
  • 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.

Release Notes

Detailed release notes are available here.

Issues

Run into a bug? Report it here.

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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft