Skip to content

Why are my Python variables now red? #16173

Answered by brettcannon
sophiiss asked this question in Q&A
Discussion options

You must be logged in to vote

We don't control specific colours, so the choice of red is not under our control.

As to why the colour may have changed, there's a couple of possibilities. One is your theme updated and that caused the colour shift.

The other possibility is you turned on Pylance and you have semantic syntax highlighting where your theme chose red for variables. If that's the case then see the docs on semantic highlighting on how to control how things are marked so you can then control what colour your theme uses.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sophiiss
Comment options

Answer selected by sophiiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
2 participants