Format selected text as HTML using js-beautify or Prettier. Useful for code embedded in strings or templating languages without formatting support (like Razor).
Format Selection As HTML has 132,557 recorded installs on VS Code Marketplace.
It ranks #2009 of 2,500 tracked VS Code Marketplace listings by installs.
It is rated 5.0 out of 5 from 4 ratings.
PluginStats has 3 daily observations since Oct 16, 2026; the latest is from Oct 18, 2026.
Rating: 5.00 / 5 from 4 ratings
About Format Selection As HTML
Format Selection As HTML
Format selected text as HTML using js-beautify or Prettier. Useful for code embedded in strings or templating languages without formatting support (like Razor).
Instruction
Use Format Selection As HTML command from context menu or Command Palette.
Presentation
Configuration
• formatSelectionAsHtml.formatter - formatter to use: prettier or js-beautify;
• formatSelectionAsHtml.htmlWhitespaceSensitivity - Prettier Whitespace Sensitivity setting.
• formatSelectionAsHtml.preserveNewlines - Beautify Preserve Newlines setting.
• formatSelectionAsHtml.maxPreserveNewlines - Beautify Max Preserve Newlines setting.
• formatSelectionAsHtml.printWidth - maximum amount of characters per line.
Description from the VS Code Marketplace listing.
Format
Formatting
HTML
Inline
javascript
Literals
Prettier
Selection
Template
Where Format Selection As HTML sits in the listing
Each band is one page of 20. Installs on a log scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
All VS Code Marketplace2,500 listings · 125 pages · page 101, #9 (overall #2009)
All VS Code Marketplace: 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.
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.