razor-formatter

a simple hack for format razor documents

This extension wraps js-beautify to format dotnet Razor files.

##Indent settings:

  • Press CTRL + SHIFT + P
  • select "Razor Formatter Config"
  • then you can set indent size and indent characer.

remember to restart vscode after save setting file.

##Usage:

inside your razor file press CTRL + SHIFT + I or right click and select "Format Document"