close

[Solved] Visual Studio Code syntax highlighting not working

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Visual Studio Code syntax highlighting not working in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Visual Studio Code syntax highlighting not working Error Occurs?

Today I get the following error Visual Studio Code syntax highlighting not working in Python.

How To Solve Visual Studio Code syntax highlighting not working Error ?

  1. How To Solve Visual Studio Code syntax highlighting not working Error ?

    To Solve Visual Studio Code syntax highlighting not working Error It's very specific but for me it was a missing semicolon in my css (styled-component). I use styled-components in react and it didn't throw an error for missing semicolon but highlighting was suddenly gone. I had given up and left it that way until I came up with the solution quite by accident.

Solution 1

In my case, the Catalina installation didn’t remove my Python installation.

the update to Catalina uninstalled some extensions from VS Code. These are not available in the VS Code extension Marketplace anymore, so there must be an issue regarding compatibility. I fixed it after I opened my command palette (Command + Shift + p) and typed python: select linter. Then selected pylint, selected the install with conda option, Close/Open VS Code and now it’s working(though it’s still not shown in my extensions section in VS Code). It’s necessary to point out that you will have to install pylint  in every Python environment you are using. In my case I have multiple Conda environments.

Solution 2

It’s very specific but for me it was a missing semicolon in my css (styled-component). I use styled-components in react and it didn’t throw an error for missing semicolon but highlighting was suddenly gone. I had given up and left it that way until I came up with the solution quite by accident.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment