Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax highlighting partially working on VS Code for C#

I have a laptop and a pc. Both have a very minimal installation of Visual Studio Code, same version.

The laptop shows a C# file in this way:

http://imgur.com/OHn5w1o

The pc shows the same C# file in this other way:

enter image description here

Obviously, I prefer the laptop version. But I can't get the PC to color the text in the same way.

Any suggestion?

like image 563
Kralizek Avatar asked Jan 22 '26 14:01

Kralizek


1 Answers

VS Code comes with 2 dark and 2 light themes (Dark, Dark+, Light and Light+). On your laptop, the Dark+ theme is active, on your PC, it's the Dark theme.

Changing the Theme

In VS Code on your PC, press F1, enter Theme, select Preferences: Color Theme, select Dark+ from the dropdown and you should be fine.

You can also press Ctrl+K, then Ctrl+T to open the theme dropdown.

like image 60
Fabian Lauer Avatar answered Jan 25 '26 05:01

Fabian Lauer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!