VS Code 1.94.2 on macOS Sequoia 15.0.1
I usually don’t mess around with themes much other than trying out different coding fonts. I’ve been using dark themes for months but just felt like using a light theme. I found that with all the light themes the colour for many symbols, punctuation, operators is the same as the background colour, or close enough that I can’t see them:
Light (Visual Studio) Visual Studio Light:
With text selected they’re not as bad:
As I say I don’t usually mess with the theme so I don’t think I’ve manually changed the colour settings. Nobody else uses my laptop. The only theme-related extension I have installed is Peacock so I tried disabling it but that made no difference.
I’ve looked through the settings to no avail and Googling doesn’t seem to bring up other people with this problem.
This is what I see if I use "Inspect Editor Tokens and Scopes":
2
Answers
The problem was found by essentially doing an extension bisect to by caused by
altehex.m68k-mot-syntax
. I suppose if you really needed it, you could at least only enable it for workspaces where you need it.The problem extension was found by enabling the extensions 1 by 1.
It was
altehex.m68k-mot-syntax
.The
package.json
file of the extension contains a section:and a few other scopes.
The line
"foreground": "#FFFFFF"
forces allkeyword.operator
scopes to be white in all themes. It should be removed.Also the forcing of all
comment.line
to be italic is wrong, the theme controls that, and also should be removed.If this extension is still useful for you do the following:
my-m68k-mot-syntax
my-m68k-mot-syntax
folderpackage.json
:"version": "1.1.0"
keyword.operator
comment.line
editor.tokenColorCustomizations
, you can do this insettings.json
for each theme separateYou can use the TextMate Scope Inspector to find the scope names you want to give a different color in your
settings.json
. It is the Theme that determines the color not the language syntax.