Okay so my vs code was normal, then i restarted my laptop without closing the app. I opened it after and almost all the text was white. It isnt the theme, because its always been on Dark+. I dont think i clicked anything major that would cause this. Its really hard to code like this. It is javascript file btw.
This is a screenshot of what it looks like:
As you can see, the ments that are meant to be green are white, the file imports and text that are meant to be orange are white. 'await' that is meant to be purple is white. even 'const' is white. anyone know how to fix this?
Okay so my vs code was normal, then i restarted my laptop without closing the app. I opened it after and almost all the text was white. It isnt the theme, because its always been on Dark+. I dont think i clicked anything major that would cause this. Its really hard to code like this. It is javascript file btw.
This is a screenshot of what it looks like:
As you can see, the ments that are meant to be green are white, the file imports and text that are meant to be orange are white. 'await' that is meant to be purple is white. even 'const' is white. anyone know how to fix this?
Share Improve this question edited Nov 17, 2022 at 16:23 Peter Macej 5,62730 silver badges51 bronze badges asked Nov 17, 2022 at 14:54 gerardgerard 5512 gold badges7 silver badges18 bronze badges 6- Have you tried restarting VS-Code? – JaRoMaster Commented Nov 17, 2022 at 14:55
- have you read code.visualstudio./docs/getstarted/themes ? – PA. Commented Nov 17, 2022 at 14:58
- VS (not code) had this problem occasionally - something to do with the language service for javascript. There might be similar options in VS Code: Options: Text Editor / JavaScript / Language Servce (I don't use VS code, so just a suggestion) – fdomn-m Commented Nov 17, 2022 at 14:58
- @freedomn-m I too suspected it, but the status line shows "javascript" – PA. Commented Nov 17, 2022 at 14:59
- first looking through the questions with the same tag might help, you are number 5 asking the same question today – rioV8 Commented Nov 17, 2022 at 15:00
4 Answers
Reset to default 4The theme thats currently active on the screenshot is Dark, what you want is Dark+.
Check if you have set your color-theme to Dark+ by going to View > Command Pallete > "Preference: Color Theme". It seems to be set to Dark, then set it to Dark+.
I had the same problem when I opened my vscode today. Disabling the Javascript and Typescript Nightly extension fixed my issue.
I got the same problem and solved it. the key reason is your language server setting. you can open your setting then search 'language Server',my 'language server' is jedi then I install extension pylance so i change it to pylance, close the setting widow, the color turned back blue.
I had the same problem before and I've fixed it by disabling JavaScript and TypeScript Nightly extension