Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Cleanup Command under Analyse menu not working in .cshtml files in VS 2022 #1033

Open
GmiSoft opened this issue Jan 6, 2024 · 0 comments

Comments

@GmiSoft
Copy link

GmiSoft commented Jan 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant