Change colors in a Visual Studio Code color theme

Viewed 7978

Is there a way to edit the colors which are set in a color theme for Visual Studio Code? I've installed Cobalt 2 but the colors are slightly different for the same theme in Sublime Text which I was using for the past couple of years. More precisely, I don't like the color of the strings in JavaScript which are white, for some reason:

enter image description here

Is there any way I can change the colors of the selected color theme?

Thanks!

3 Answers
  1. First check the theme your using's description for the hex value of what you want to replace (ex: strings).
  2. Find .vscode/extension/ folder then find the theme json file (might be in another folder called themes) 3.. open it in the text editor
  3. Use replace feature (most text editors have) and put in the hex value you found in the readme and replace it with the hex value of the color you want string to be.

If you want to update the theme description go into the themes readme file and do they same (replace original value with new), then restart vscode.

enter image description here

Related