Code Cleanup Command under Analyse menu not working in .cshtml files in VS 2022
GmiSoft opened this issue · 0 comments
GmiSoft commented
Environment
- Visual Studio version: 2022 Community version 17.7.6
- Code language: Razor/HTML
Description
When I use Analyze -> Code Cleanup -> Profile 1 (With the only fixer Format Document) does not work in a .cshtml file in an ASP.NET Core Web App project.
Steps to recreate
Create a new ASP.NET Core Web App project.
Change the configuration of the Profile 1 to keep only Format document fixer
Open Index.cshtml and make changes that should be cleaned up, indentation and spaces
Open Index.cshtml.cs and make the same changes
Use the Command Analyze -> Code Cleanup -> Profile 1
Current behavior
The .cshtml file is not cleaned up, but the associated .cshtml.cs file is.
Expected behavior
The .cshtml file should be cleaned up.