Inconsistent Razor (cshtml) Coloring
See original GitHub issueIssue
The Razor code formatter does inconsistent formatting / coloring. Please, see the screenshot below.
Environment data
.NET Core
.NET SDK (reflecting any global.json):
Version: 5.0.100
Commit: 5044b93829
Runtime Environment:
OS Name: Windows
OS Version: 6.3.9600
OS Platform: Windows
RID: win81-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.100\
Host (useful for support):
Version: 5.0.0
Commit: cf258a14b7
.NET SDKs installed:
3.1.200 [C:\Program Files\dotnet\sdk]
3.1.301 [C:\Program Files\dotnet\sdk]
5.0.100 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
VS Code
Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 6.3.9600
C# Extension
v1.23.7
Steps to reproduce
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Visual Studio 2015 not syntax highlighting razor nor Intellisense
My project was working fine in VS2013, but it isn't in 2015, and it's not giving me any Intellisense on the C# code....
Read more >No color coding on cshtml pages - MSDN - Microsoft
# Source Time (UTC)
1 VisualStudio 2016/05/25 20:54:14.811
2 Microsoft Visual Studio Appid Stub 2016/05/25 20:54:14.817
3 VisualStudio 2016/05/25 20:54:14.842
Read more >How to troubleshoot and resolve flickering, blotching ...
This will provide you the steps on how to fix flickering, blotching, discoloration, or inconsistent brightness on the Razer Blade display.
Read more >Paradox Memorial color inconsistency : r/DotA2 - Reddit
Paradox Memorial color inconsistency ... the Paradox Memorial Death mark coloring is very. ... Voidstorm Asylum Razor Arcana — Now Available.
Read more >Uneven Skin Tone | Skin Care - Clinique
Shop for best-selling Uneven Skin Tone solutions from Clinique. Read reviews, see Before & Afters, and more. Allergy Tested. 100% Fragrance Free.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Woops. @JoeRobich nailed the owner for this then 😄. Ya this is because we don’t currently support C# semantic colorization in VSCode
This is tracked by https://github.com/dotnet/aspnetcore/issues/26479.