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. |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.