question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent Razor (cshtml) Coloring

See original GitHub issue

Issue

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

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
NTaylorMullencommented, Dec 9, 2020

@NTaylorMullen looks like this is a coloring issue(not formatting).

Woops. @JoeRobich nailed the owner for this then 😄. Ya this is because we don’t currently support C# semantic colorization in VSCode

0reactions
ryanbrandenburgcommented, Apr 30, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found