vscode-xml provides several vscode commands which are available with Ctrl+Shift+P.
This command triggers the XML Binding Wizard for the current file.
Details on the command are described here.
This command opens the XML Documentation.
This command re-triggers the XML Validation for the current file.
When the Server Cache Path is activated, the command removes the referenced XSD, DTD grammar from the local cache.
This command re-triggers the XML Validation for the all opened XML files.
When the Server Cache Path is activated, the command clears the remote grammar cache and revalidates all opened files.
This command restarts the XML language server.
This command minifies the current XML document by removing unnecessary whitespace while preserving the document's structure and content.
The minification can be triggered via the Source > Minify XML menu.
The minification process:
- Removes all indentation and line breaks between elements
- Removes whitespace between the XML declaration and the root element
- Normalizes whitespace sequences inside text content to a single space
- Preserves whitespace in elements with
xml:space="preserve"attribute - Preserves content in CDATA sections
- Reduces multiple spaces between attributes to a single space
This is useful for reducing file size before transmitting or storing XML documents.
