
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
Pretty XML Formatter
Advanced tools
Affected versions:
Pretty XML Formatter extension for Visual Studio Code. Formats XML documents just like Visual Studio.
Format and beautify any XML document directly in Visual Studio Code and VSCodium. Modern formatting. Flexible settings. Fast and visually clear results.
Pretty XML Formatter is an extension for Visual Studio Code and VSCodium designed to quickly clean up and beautify XML files.
It brings clear, consistently formatted XML using a modern, transparent set of rules—just as you see in Visual Studio.
Works perfectly with:
.xml, .xaml, .axml, .xsd, .xsl, .plist, .mobileconfig, .config, .csproj, .svg, .resx and any other XML-based files.A version for Visual Studio for Mac is also available. Suggestions and contributions are welcome!
Just right-click and choose Prettify XML or use the keyboard shortcut.
Example:
| Command | Platform | Shortcut |
|---|---|---|
| Prettify XML | Mac | Cmd+K L |
| Prettify XML | Win, Linux | Ctrl+K L |
| Minimize XML | Mac | `Cmd+K `` |
| Minimize XML | Win, Linux | `Ctrl+K `` |
Tip:
You can change shortcuts in Preferences → Keyboard Shortcuts.
All settings are available for the Prettify XML command.
| Setting Key | Default | Description |
|---|---|---|
| indentSpaceLength | 4 | Number of spaces for indentation |
| useSingleQuotes | false | Use ' instead of " for attributes |
| useSelfClosingTag | true | Use self-closing tags if no children |
| formatOnSave | false | Enable format on save |
| allowSingleQuoteInAttributeValue | true | Allow ' in attribute values |
| addSpaceBeforeSelfClosingTag | true | Adds space before /> |
| wrapCommentTextWithSpaces | true | Wrap comment text with single space |
| allowWhiteSpaceUnicodesInAttributeValues | true | Allow whitespace Unicode chars in attributes |
| positionFirstAttributeOnSameLine | true | First attribute on the same line |
| positionAllAttributesOnFirstLine | false | All attributes on the first line |
| preserveWhiteSpacesInComment | false | Preserve whitespace in comments |
| addSpaceBeforeEndOfXmlDeclaration | false | Extra space before end of XML declaration |
| addXmlDeclarationIfMissing | true | Add XML declaration if missing |
| attributesInNewlineThreshold | 1 | Threshold to push attributes onto new lines |
| enableLogs | false | Display logs in the output |
| wildCardedExceptionsForPositionAllAttributesOnFirstLine | [] | Which elements ignore 'all on first line' rule (use wildcard patterns) |
| addEmptyLineBetweenElements | false | Add empty line if there are >2 children |
Found a bug? Report in the issues.

FAQs
Pretty XML Formatter extension for Visual Studio Code. Formats XML documents just like Visual Studio.
We found that pretty-studio-advisor.prettyxml-formatter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.