Skip to content
PluginStats

Pretty Formatter installs statistics

By mblode (3 listings) · VS Code Marketplace · Programming Languages

Safe Twig and HTML formatting, with bundled Prettier for JavaScript, TypeScript, CSS, JSON, XML and Liquid.

View on VS Code Marketplace Fresh · Dec 6, 2026

Pretty Formatter has 449,269 recorded installs on VS Code Marketplace, an increase of 0.5% over the past 30 days, ranking #903 of 2,515 tracked listings.

Installs
449,269
Official API · Dec 6, 2026
7-day growth
+0.1%
+545 installs
30-day growth
+0.5%
+2.4K installs
90-day growth
—
Insufficient history
Rank
#903
Among tracked VS Code Marketplace listings

Rating: 3.69 / 5 from 13 ratings

About Pretty Formatter

Pretty Formatter

Format Twig and HTML without losing template code, with bundled Prettier parsers for JavaScript, TypeScript, stylesheets, JSON, XML and Liquid. No project configuration, plugins or external runtime are required.

Choose Format Document With… → Pretty Formatter → Configure Default Formatter, or configure a language:

{
  "[twig]": { "editor.defaultFormatter": "mblode.pretty-formatter" },
  "[typescript]": { "editor.defaultFormatter": "mblode.pretty-formatter" }
}

For Twig highlighting, snippets and HTML completion, install Twig Language 2. Both extensions share the Twig formatter. Select one default formatter per language.

Languages

Language IDsBehavior
twig, htmlSource-preserving Twig/HTML formatter. Conditional attributes, crossing HTML/Twig blocks, raw regions and inline text are preserved. Safe embedded JS/CSS uses Prettier.
jinja, nunjucks, voltShared template formatting for compatible delimiters. Expressions retain their source tokens; this is not a complete compiler for these dialects.
javascript, js, javascriptreact, jsx, flowPrettier JavaScript/JSX/Flow parsers.
typescript, typescriptreact, ts, tsxPrettier TypeScript parser.
json, jsonc, css, scss, less, handlebarsCorresponding bundled Prettier parsers.
xml, xsltPrettier XML plugin, with strict text whitespace preservation.
liquidShopify's Liquid parser and printer.
eex, ejs, erb, aspx, tpl, ftl, cfm, cfmlConservative surrounding HTML indentation. Template spans and CFScript bodies retain their exact bytes; expressions and dialect control-flow layout are not rewritten.
qmlBrace indentation only, preserving colon spacing and strings.

YAML frontmatter remains byte-for-byte unchanged in template documents. Language extensions provide any language IDs not built into VS Code; Pretty Formatter does not take ownership of file associations.

The old PrettyDiff listing claimed other dialects without reliable parser support. vtl, dust, genshi, htl, mustache, SilverStripe, spacebars, leaf, vash, alloy-tss, tss and indented sass currently have no formatter provider. Python and C# are also unsupported. They are never guessed as JavaScript or HTML. Additional dialects need a real parser and regression evidence before support is restored.

Settings and migration from 0.2.x

Changes apply immediately and respect document, workspace-folder and language overrides.

  • pretty-formatter.formatting: enable formatting, default true.
  • pretty-formatter.disableLanguages: list of language IDs to skip.
  • pretty-formatter.ignore: path globs with *, **, ?; a bare directory such as vendor matches any path segment.
  • pretty-formatter.indentSize: 0 uses the editor's current document indentation. Positive values override the width; tabs follow editor.insertSpaces.
  • pretty-formatter.wrap: preferred width; 0 uses 80 for Prettier and retains Twig/HTML attribute wrapping.
  • pretty-formatter.forceAttribute, spaceClose: Twig/HTML attribute layout.
  • pretty-formatter.quoteConvert: single or double for Prettier code; Twig literals retain their quotes.
  • pretty-formatter.endComma: always or never for applicable Prettier code; none uses parser defaults.
  • pretty-formatter.newLine: final-newline preference where it does not modify literal template text.
  • pretty-formatter.embeddedFormatting: safe embedded JavaScript/CSS in Twig/HTML, default true.
  • pretty-formatter.formatTimeout: worker limit in milliseconds, default 5000.

Other PrettyDiff settings are deprecated and explicitly marked unused in VS Code. Version 0.3.0 removes PrettyDiff, so supported code languages adopt Prettier layout defaults. It never loads project Prettier configuration or third-party workspace plugins.

Formatting runs in a disposable worker with cancellation, stale-document checks and a 2 MiB limit. A parser error or timeout returns no edits and a diagnostic in Output → Pretty Formatter. Twig selections use full-document context. Other parsers may require a larger syntax unit; when an edit would escape the selection, use Format Document.

VS Code 1.85+ desktop and remote extension hosts are supported, including untrusted workspaces and non-file documents. A browser-only extension host is not included.

Development

Use Node 22. Run npm ci, composer install --working-dir=test/php, npm test, npm run test:oracle, npm run package, and npm run test:extension. PHP is used only for the independent Twig lexer/render tests. CI tests the extracted VSIX in current stable VS Code. The regression corpus comes from the three-extension audit.

Description from the VS Code Marketplace listing.

  • aspx
  • beautify
  • cfm
  • cfml
  • css
  • eex
  • ejs
  • erb
  • flow
  • format
  • ftl
  • handlebars
  • html
  • javascript
  • javascriptreact
  • jinja
  • js
  • json
  • jsonc
  • jsx

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 Formatter installs on VS Code Marketplace, last 90 days: 449,269 installs as of Dec 6, 2026.Pretty FormatterInstalls on VS Code Marketplace · Last 90 days449,269installs444K445K446K447K448K449K450KSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
Pretty Formatter installs on VS Code Marketplace, last 90 days: 449,269 installs as of Dec 6, 2026.

7/30/90-day growth

Pretty Formatter installs growth on VS Code Marketplace: +0.1% over 7 days, +0.5% over 30 days, 90-day growth unavailable.Pretty FormatterInstalls growth on VS Code Marketplace449,269installs now7-day growth+545 installs+0.1%30-day growth+2,422 installs+0.5%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
Pretty Formatter installs growth on VS Code Marketplace: +0.1% over 7 days, +0.5% over 30 days, 90-day growth unavailable.

Ranking history

Pretty Formatter VS Code Marketplace ranking history: currently #903 (by installs).Pretty FormatterVS Code Marketplace ranking · by installs · Last 90 days#903current rank#896#898#900#902#904#906Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
Pretty Formatter VS Code Marketplace ranking history: currently #903 (by installs).

Ratings over time

Pretty Formatter ratings on VS Code Marketplace, last 90 days: 13 ratings as of Dec 6, 2026.Pretty FormatterRatings on VS Code Marketplace · Last 90 days13ratings11.51212.51313.51414.5Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
Pretty Formatter ratings on VS Code Marketplace, last 90 days: 13 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,259 shown · page 46, #6 (overall #906)
All VS Code Marketplace: every listing in installs order

Listing placement

Programming Languages795 listings · 40 pages · page 17, #14 (overall #334)
Programming Languages: every listing in installs order

Listing placement

Snippets490 listings · 25 pages · page 9, #6 (overall #166)
Snippets: every listing in installs order

Listing placement

Formatters284 listings · 15 pages · page 6, #17 (overall #117)
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 (50)
Recent installs observations for Pretty Formatter
Date (UTC)InstallsChange vs. previous
449,269+80
449,189+71
449,118+63
449,055+105
448,950+89
448,861+85
448,776+52
448,724+86
448,638+44
448,594+143
448,451+44
448,407+99
448,308+51
448,257—

Similar VS Code Marketplace Programming Languages plugins

All 20 Pretty Formatter 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=mblode.pretty-formatter. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.