You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to set different colors for different storage modifers like public and private, in C# code. For this I believe we'd need more detailed scopes.
Right now, both the public and private modifier has the textmate scope storage.modifier.cs, source.cs, which means it's impossible (?) to distinguish between them when coloring.
Suggestion
Add finer scopes, such as storage.modifier.public.cs for the public modifier, and so on.
So that settings like these would work in VS Code:
@kraybit This extension uses Roslyn for semantic colorization, when "csharp.semanticHighlighting.enabled" is "true". Could you make this request againt Roslyn to provide this extra semantic information https://github.com/dotnet/roslyn/issues
Feature Request Description
public
andprivate
, in C# code. For this I believe we'd need more detailed scopes.public
andprivate
modifier has the textmate scopestorage.modifier.cs, source.cs
, which means it's impossible (?) to distinguish between them when coloring.Suggestion
storage.modifier.public.cs
for thepublic
modifier, and so on.Example of what does not work right now, as
storage.modifier.public
does not exist.History
This issue was originally posted on microsoft/vscode
Environment information
VSCode version: 1.62.2
C# Extension: 1.23.16
Dotnet Information
.NET SDK (reflecting any global.json): Version: 5.0.402 Commit: e9d3381880Runtime Environment:
OS Name: Windows
OS Version: 10.0.19043
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.402\
Host (useful for support):
Version: 5.0.11
Commit: f431858f8b
.NET SDKs installed:
5.0.103 [C:\Program Files\dotnet\sdk]
5.0.402 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: