Skip to content

two-color syntax highlighting (vs code has more colors) #2278

ivang7 asked this question in Q&A
two-color syntax highlighting (vs code has more colors) #2278
17d ago · 4 answers

Hey.

I noticed that in the code-server only three colors are used for syntax highlighting (blue for keywords, brown for strings, white for the rest).

VS code uses a lot more colors to highlight different elements - classes, interfaces, methods, etc.

Can this be fixed? maybe some extensions? or does it need to be improved on the code-server?
Are there any plans to make the highlighting more informative, similar to vs code?
Code_CctxqsDsoI

Replies

4 comments

3 replies
@ivang7

I apologize for not answering for a long time.
The theme and plugins are installed the same.

Possibly the difference in LanguageServer for C #

When looking at the token and scope in the code-sever, you can see that there is no specific definition for the interface
code-server:
code-server

visual code:
visual-code

@code-asher

What versions of code-server and VS Code are you using?

I tried running the latest VS Code insiders with the Dark+ theme and created a new project with dotnet new but when I hover over the same token I only see storage.type.cs source.cs; I don't get anything about interfaces. I also tried the latest non-insiders VS Code but had the same result.

The only extension I have installed is the C# extension. I'm getting intellisense so the language server appears to be running. Do you have any other C#-related extensions installed? Maybe I'm missing one.

It looks like in your latest screenshot though code-server now has all the highlighting it was missing in your first screenshot. Was code-server initially using the Dark theme? That theme seems to have fewer colors.

@code-asher

code-asher 8d ago
Maintainer

Screenshot for reference, apologies for the bad quality as it's over VNC. This is from VS Code 1.51.1 on Ubuntu with dotnet and the C# extension installed using the Dark+ theme.

vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
2 participants
Beta
You can’t perform that action at this time.