Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get VS's python syntax highlighting in VS code?

It seems like VS Community with python tools has a better syntax highlighting than VS Code with "Python" by Don Jayamanne. As you can see in the picture attached, VS Community highlights in ¿purple? the packages imported, and lightblue for classes while VS code just don't. Comparison

like image 503
alete Avatar asked Jul 24 '17 23:07

alete


1 Answers

I ran into the same issue and some VS Code themes are not supporting syntax highlighting atleast for me. I tried with Ruby and Python and the theme I was using was Dark(Visual Studio).

Changing to Dark+ (Default Dark) did the trick for me.

Goto Preferences -> Color Themes and choose Dark+(Default Dark) or something similar.

Hope it helps.

like image 65
evilGenious Avatar answered Oct 19 '22 07:10

evilGenious