DEV Community

Sworks
Sworks

Posted on

1

Vscode comment

spent like 30-45 minutes trying to turn visual studio code's comments into white. Damn, more than half of the internet solutions are written like it's for the tech people..lol. I'm not a tech person~

Top comments (2)

Collapse
 
hryggrbyr profile image
Thomas Rigby • Edited

If you want to do it without a plugin.

  1. Open settings. If you have configured it to open as json by default, skip to step 4.
  2. Search for "token color customization"
  3. Select "Edit in settings.json" underneath Editor: Token Color Customizations
  4. At the bottom of the file, just before the very last }, paste the following code:
"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "scope": ["comment",
        "comment.block",
        "comment.block.documentation",
        "comment.line",
        "comment.line.double-slash",],
      "settings": {
        "foreground": "#ffffffff",
      }
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Save the settings file and you're good to go 😊

Collapse
 
dario_wd_coding profile image
Dario Presutti • Edited

this can help you code.visualstudio.com/docs/getstar...

or you can use an extension like marketplace.visualstudio.com/items... that let you choice different color for different tag like //! that color the comment inred, //todo in orange ecc...from settings you can add more tag and change the color

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay