Search code examples
pythoncolorsreset

Incomplete python text colour in Visual Studio Code


I am programming with Visual Studio Code a python code but one month after installing VS the colours of the python code have changed

I have tried uninstalling python and reinstalling it, but to no avail. I did the same thing with Visual Studio and also the same result. I have also removed all the extensions I had but the problem persists

What I would like to have is like this image taken from the internet, where words have several different colours


Solution

  • Changing the theme in VSCode can also change how syntax is highlighted. You can test this by changing the theme to something else:

    • Open the command palette (ctrl+shift+p)
    • Type "color theme" and press enter
    • Choose a different theme from the list e.g. the default (Dark+/Light+) if it isn't already selected