How do I change color of comments in visual studio code?

后端 未结 9 2323
被撕碎了的回忆
被撕碎了的回忆 2020-11-27 10:29

I went through https://code.visualstudio.com/docs/getstarted/theme-color-reference but can\'t seem to find the setting for changing the comment color.

I am currentl

9条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 11:13

    To change VS Code comment color

    File --> Preferences --> Settings

    Choose the "Workspace Settings" tab to only change it for this project
    Choose the "User Settings" tab to change it for all projects

    Do a search for "settings.json" and look for an option to "Edit in settings.json"

    Insert this color setting for the comments somewhere inside the curly brackets:

      "editor.tokenColorCustomizations": {
        "comments": "#ff4"
      }

    It might complain that you are overriding your current color theme, just ignore that.

    If there is already a section for "editor.tokenColorCustomizations" then just add the line to specify the comment color.

提交回复
热议问题