| Marketplace
Sign in
Visual Studio Code>Other>Format Selection As HTMLNew to Visual Studio Code? Get it now.

Format Selection As HTML

Adrian Wilczyński

|
2,314 installs
| (1) | Free
Format selected text as HTML using Prettier. Useful for code embedded in strings or templating languages without formatting support (like Razor).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Format Selection As HTML

Format selected text as HTML using 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

Example

Configuration

Exposes Prettier's HTML Whitespace Sensitivity and Print Width settings through formatSelectionAsHtml.htmlWhitespaceSensitivity and formatSelectionAsHtml.printWidth properties.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft