dotnet / dotnet/roslyn

Better indicators for C# in Razor files

Open
#85,627 3 comments 0 reactions 0 assignees View on GitHub
Area-Razor
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

Through a different bug, I came across the option to highlight the background of C# in Razor files.

This was a nice indicator, but it gets rather messy and easy to miss C# when it's off the edge of view of the file.

An addition (or alternative) would be nice to have an indicator in the sidebar when there is C# code on that line so it's easy to see to differentiate it from HTML

A quick mock-up of what I was thinking:

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.