Why are my Python variables now red? #16173
|
They were white, or whatever color the editor foreground was. Now they are red and I don't like it. |
Answered by
brettcannon
May 7, 2021
Replies: 1 comment 1 reply
|
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. |
1 reply
Answer selected by
sophiiss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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.