Skip to content
PluginStats

Pretty XML installs statistics

By Prateek Mahendrakar · VS Code Marketplace · Formatters

XML formatter extension for Visual Studio Code. Formats XML documents just like Visual Studio.

View on VS Code Marketplace Fresh · Oct 19, 2026

Pretty XML has 418,809 recorded installs on VS Code Marketplace, ranking #936 of 2,501 tracked listings.

Installs
418,809
Official API · Oct 19, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#936
Among tracked VS Code Marketplace listings

Rating: 4.62 / 5 from 156 ratings

About Pretty XML

Pretty XML

What is it?

Features 1. Prettify XML (XML Formatting) 2. Pretty XML: Minimize

Keyboard Shortcuts

Settings

Requirements

Installation

Known Issues

Change Log

For more information

What is it?

Pretty XML is a XML formatter extension for Visual Studio Code and VSCodium. It formats XML documents just like Visual Studio on Windows.

Supported file extensions:

• xml • xaml • axml • xsd • xsl • plist • mobileconfig • config • csproj • svg • resx and all other XML type of files.

There is also Visual Studio for Mac version of this extension. Check it out at PrettyXML.VSMac

Suggestions, improvement PRs are welcome.

Features

  1. Prettify XML (XML Formatting)

Right Click and Select Prettify XML or use shortcut

• Position each attribute on a separate line. • First attribute on same line as start element start tag. • All attributes indented aligning with first attribute. • If no child for an element then close inline end tag. • No empty lines. • Supports ' and whitespace unicodes in attribute value for XAML parser compatibility.

1.a. Format Entire Document

• Lets you format entire valid XML document.

1.b. Format Selection - Beta

• Lets you format part of an XML document. XML can be partial and invalid. This is in beta, so feel free to submit pull request with improvements. • The selection is indented from the indentation of its first line, so it keeps the depth it sits at in the document, and that first line's indentation is kept exactly as it was written. • Indentation follows the editor: one tab per level when the editor inserts tabs, otherwise prettyxml.settings.indentSpaceLength spaces. Continuation lines of a wrapped attribute list line up with spaces, since a column inside a tag cannot be written in tabs. • Nothing is added or removed. An end tag closes the element it names, an element the selection leaves open keeps its content indented under it, and a selection that starts or ends in the middle of a tag keeps those characters as they are. • Content of an element carrying xml:space="preserve" is left as written when that element is inside the selection. • An element whose content mixes text and markup is kept on one line when it begins and ends with text, as in some bold text

. Otherwise the markup that the text joins together shares a line, as in . Text spanning several lines is re-indented a line at a time.

Before

After

  1. Pretty XML: Minimize

Minimizes XML.

Keyboard Shortcuts

| Command | Platform | Shortcut |

| Prettify XML | Mac | Cmd+K L | | Prettify XML | Windows, Linux | Control+K L | | PrettyXML: Minimize | Mac | Cmd+K ` | | PrettyXML: Minimize | Windows, Linux | Control+K ` |

Note

You can change these in Preferences → Keyboard Shortcuts if you want.

Settings

These will be for Prettify XML command.

| Setting Key | Default Value | Description |

| prettyxml.settings.indentSpaceLength | 4 | No. of spaces for indentation. | | prettyxml.settings.useSingleQuotes | false | Use ' instead of " | | prettyxml.settings.useSelfClosingTag | true | If no child nodes then self closing tag /> | | prettyxml.settings.formatOnSave | false | Enable format on save | | prettyxml.settings.allowSingleQuoteInAttributeValue | true | Allows ' in attribute values instead of ' | | prettyxml.settings.addSpaceBeforeSelfClosingTag | true | Adds space before self closing tag | | prettyxml.settings.wrapCommentTextWithSpaces | true | Wraps comment text with a single space | | prettyxml.settings.allowWhiteSpaceUnicodesInAttributeValues | true | Allows white space unicodes in attribute values | | prettyxml.settings.positionFirstAttributeOnSameLine | true | Position first attribute on same line. | | prettyxml.settings.positionAllAttributesOnFirstLine | false | Position all attributes on first line | | prettyxml.settings.preserveWhiteSpacesInComment | false | Preserves whitespaces in a comment. | | prettyxml.settings.addSpaceBeforeEndOfXmlDeclaration | false | Add space before end of XML declaration. | | prettyxml.settings.addXmlDeclarationIfMissing | true | Add XML declaration if missing. | | prettyxml.settings.attributesInNewlineThreshold | 1 | Attributes count threshold to position attributes in newlines. | | prettyxml.settings.enableLogs | false | Enables logs | | prettyxml.settings.wildCardedExceptionsForPositionAllAttributesOnFirstLine | Array\ | Wild card exceptions for elements to ignore positionAllAttributesOnFirstLine | | prettyxml.settings.addEmptyLineBetweenElements | false | Add empty line between elements if the child count is greater than 2 | | prettyxml.settings.addEmptyEol | false | Add empty EOL to files if it does not exist. | | prettyxml.settings.preserveNewLines | false | Preserve existing new lines between elements. | | prettyxml.settings.preserveCommentPlacement | false | Preserve comment line placement. | | prettyxml.settings.escapeInvisibleNonAsciiCharacters | false | Escape invisible non-ASCII characters as character references. |

The top of the settings pane. Each entry carries its default and, where it helps, a worked example. The table above is the complete list - search prettyxml in Settings to scroll through them all.

Attributes In Newline Threshold

Example:

Value = 2

Input 1

Output 1

Input 2

Output 2

Wild Carded Exceptions For Position All Attributes On First Line

List of element names to ignore Position All Attributes On First Line setting. Include element names or patterns here.

Example:

Input 3

Output 3

Add Empty Line Between Elements

If enabled, and child elements count is greater than 2 then adds empty line between elements.

[!NOTE] Please note it wont add empty element before first element and after last element.

Input 4

Output 4

Add Xml Declaration If Missing

Adds XML declaration if missing. Default is true.

Also applies to Pretty XML: Minimize, the one setting that does. A declaration the document already has is kept either way.

Preserve New Lines…

Description from the VS Code Marketplace listing.

  • axml
  • config
  • csproj
  • formatter
  • keybindings
  • mobileconfig
  • plist
  • resx
  • xaml
  • xml
  • xsd
  • xsl

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

Pretty XML installs on VS Code Marketplace, last 90 days: 418,809 installs as of Oct 19, 2026.Pretty XMLInstalls on VS Code Marketplace · Last 90 days418,809installs418.5K418.6K418.6K418.7K418.7K418.8K418.8K418.9KJul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Oct 19, 2026 · 4 observations · Updated Oct…pluginstats.com
Pretty XML installs on VS Code Marketplace, last 90 days: 418,809 installs as of Oct 19, 2026.

7/30/90-day growth

Pretty XML installs growth on VS Code Marketplace: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.Pretty XMLInstalls growth on VS Code Marketplace418,809installs now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 19, 2026pluginstats.com
Pretty XML installs growth on VS Code Marketplace: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

Pretty XML VS Code Marketplace ranking history: currently #936 (by installs).Pretty XMLVS Code Marketplace ranking · by installs · Last 90 days#936current rank#934#935#936#937#938Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 16, 2026 – Oct 19, 2026 · 4 observations · Updated Oct 19, 2026pluginstats.com
Pretty XML VS Code Marketplace ranking history: currently #936 (by installs).

Ratings over time

Pretty XML ratings on VS Code Marketplace, last 90 days: 156 ratings as of Oct 19, 2026.Pretty XMLRatings on VS Code Marketplace · Last 90 days156ratings140145150155160165170175Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Oct 19, 2026 · 4 observations · Updated Oct…pluginstats.com
Pretty XML ratings on VS Code Marketplace, last 90 days: 156 ratings as of Oct 19, 2026.

Listing placement

All VS Code Marketplace2,501 listings · 126 pages · 1,252 shown · page 47, #16 (overall #936)
All VS Code Marketplace: every listing in installs order

Listing placement

Formatters287 listings · 15 pages · page 7, #4 (overall #124)
Formatters: every listing in installs order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (4)
Recent installs observations for Pretty XML
Date (UTC)InstallsChange vs. previous
418,809+47
418,762+63
418,699+164
418,535—

Similar VS Code Marketplace Formatters plugins

All 20 Pretty XML alternatives

Data source

Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.

Listing: https://marketplace.visualstudio.com/items?itemName=PrateekMahendrakar.prettyxml. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.