© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•7mo ago•
3 replies
Centy

✅ Formatting razor files via CLI

Hi there,

Is there a way of formatting razor files via a CLI? I'd like to add it as part of our build step, but it seems csharpier and dotnet format do not support razor files.

Thanks!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Blazor/Razor markup formatting?
C#CC# / help
3y ago
❔ What is the difference between .cshtml files and .razor files?
C#CC# / help
3y ago
Formatting .CSS files in a blazor project
C#CC# / help
12mo ago
❔ .razor files intellisense not working - Visual Studio 2022
C#CC# / help
3y ago