Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
GitHub didn't answer, so this is the saved copy from 1 days ago
Will it work on Windows?
Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git
git clone https://github.com/Khilaraj123/RazorFormatter.git cd RazorFormatter
.NET SDK
winget install Microsoft.DotNet.SDK.8
dotnet restore RazorFormatter.slnx dotnet build RazorFormatter.slnx
dotnet test RazorFormatter.slnx
Install globally via NuGet to format Razor files directly from terminal or CI/CD pipelines:
# Install globally
dotnet tool install -g RazorCodeFormatter
# Format one file in place
razorfmt Views/Home/Index.cshtml
# Format an entire directory or project in place
razorfmt ./Views
razorfmt .
# Check if any files require formatting (CI mode, exits with code 1 if unformatted)
razorfmt check .
# Display unified differences
razorfmt diff .
Install directly from the VS Code Marketplace by searching for Razor Formatter (razor-code-formatter), or install via terminal:
code --install-extension razor-formatter.razor-code-formatter
Install directly from the Visual Studio Marketplace (search for Razor Formatter for Visual Studio) or download the .vsix from our GitHub Releases.
No reports for Windows yet.
GitManual AI Agent reads the 3 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.