You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to programming and want to create a custom theme for VS Code (programming language - Python). Everything was fine until VS Code suddenly started mess up my colors (see images below).
For example:
When opening the Debugger, at first, the bracket colors are displayed in one order, but within a split second, their colors switch places. Moreover, when this problem first appeared, initially, in the first second after opening the Debugger, the token colors were displayed correctly (the first pair of brackets was green, the second - pink, etc.). After that, the token colors changed (the first brackets became purple, and so on). Now, even when initially opening the Debugger, the bracket colors are displayed incorrectly (pink, then purple, etc.). The custom settings show in what sequence the bracket colors should be displayed ("editorBracketHighlight.foreground1," etc.).
The same applies to other tokens. For example, initially, def and class were pink, while for, in, and other keywords were purple. Now everything is purple. Class names (JustClass) should be sand-colored, but they are green. Variables in the global scope (my_dictionary, x) should be gray, but now some of them are gray, and some are purple. And so on.
The problem is that even with an absolutely empty settings.json file and a deleted custom theme file, when opening the Debugger, the token colors still get reassigned after 1-2 seconds.
1st. Opening the Debugger - the theme colors are displayed like this:
2nd. The first second after opening the Debugger - tokens and the interface are recolored according to my theme settings, but incorrectly:
3rd. The second recoloring of tokens - the colors still correspond to my custom settings, but they are still messed up:
I have researched many forums, but no advice has helped me. What I have done (as far as I remember):
Restarted VS Code
Uninstalled VS Code
Completely cleared settings.json, saved the changes, and restarted VS Code
Created a new custom theme
Cleared the Python Debugger cache
Changed the Python interpreter
Changed the "editor.semanticHighlighting.enabled" setting from true to false and back (although everything was displayed as I needed with true before)
Changed individual settings in settings.json
Unistalled Pylance extension (although everything was displayed correctly before uninstalling too, as I remember)
None of this helped. And I have run out of ideas for Googling questions.
There is also a possibility that I changed something in Preferences, but I no longer remember what exactly I changed.
UPD. In the end, I 1) uninstalled VS Code again, 2) deleted the Code folder, which also contains the settings.json file, 3) deleted the extensions folder, 4) reinstalled VS Code, but it didn’t change anything.
Even with no themes installed, bracket colors change three times (first they are gray, then they change color twice; all other tokens are grey). I did not set up any brackets color settings arter reinstalling VS Code.
At the time of writing this question, my settings.json and custom theme (which is not yet fully completed) files look like this: settings.json pussdev-pink-theme.json
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am new to programming and want to create a custom theme for VS Code (programming language - Python). Everything was fine until VS Code suddenly started mess up my colors (see images below).
For example:
When opening the Debugger, at first, the bracket colors are displayed in one order, but within a split second, their colors switch places. Moreover, when this problem first appeared, initially, in the first second after opening the Debugger, the token colors were displayed correctly (the first pair of brackets was green, the second - pink, etc.). After that, the token colors changed (the first brackets became purple, and so on). Now, even when initially opening the Debugger, the bracket colors are displayed incorrectly (pink, then purple, etc.). The custom settings show in what sequence the bracket colors should be displayed ("editorBracketHighlight.foreground1," etc.).
The same applies to other tokens. For example, initially, def and class were pink, while for, in, and other keywords were purple. Now everything is purple. Class names (JustClass) should be sand-colored, but they are green. Variables in the global scope (my_dictionary, x) should be gray, but now some of them are gray, and some are purple. And so on.
The problem is that even with an absolutely empty settings.json file and a deleted custom theme file, when opening the Debugger, the token colors still get reassigned after 1-2 seconds.
1st. Opening the Debugger - the theme colors are displayed like this:

2nd. The first second after opening the Debugger - tokens and the interface are recolored according to my theme settings, but incorrectly:

3rd. The second recoloring of tokens - the colors still correspond to my custom settings, but they are still messed up:

I have researched many forums, but no advice has helped me. What I have done (as far as I remember):
None of this helped. And I have run out of ideas for Googling questions.
There is also a possibility that I changed something in Preferences, but I no longer remember what exactly I changed.
UPD. In the end, I 1) uninstalled VS Code again, 2) deleted the Code folder, which also contains the settings.json file, 3) deleted the extensions folder, 4) reinstalled VS Code, but it didn’t change anything.
Even with no themes installed, bracket colors change three times (first they are gray, then they change color twice; all other tokens are grey). I did not set up any brackets color settings arter reinstalling VS Code.
And when editing the original Bluloco Dark Italic theme file, token colors also change two times, brackets - three times:
https://github.com/user-attachments/assets/ad378fe7-154a-4ad1-9c5d-0a756508fcc5
Please help me understand what I did wrong.
At the time of writing this question, my settings.json and custom theme (which is not yet fully completed) files look like this:
settings.json
pussdev-pink-theme.json
Beta Was this translation helpful? Give feedback.
All reactions