How to edit default dark theme for Visual Studio Code?

后端 未结 10 2063
执念已碎
执念已碎 2020-11-30 17:24

I\'m using Windows 7 64-bit.

Is there a way to edit default dark theme in the Visual Studio Code? In %USERPROFILE%\\.vscode folder there are only themes

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 18:11

    Solution for MAC OS

    I'm not sure if this answer suits here, but I would like to share a solution for MAC users and it looks awkward if I start a new question and answer myself there.


    look for your VSCode theme path something like below:

    ..your_install_location/Visual Studio Code.app/Contents/Resources/app/extensions/theme-name/themes/theme_file.json

    open .json file and look for your targeted styles to change.
    For my case, I want to change the whitespace render colour
    and I've found it as
    "editorWhitespace.foreground"
    so under settings.json in Visual Studio Code,
    I added the following lines (I do in Workspace Settings),

    "workbench.colorCustomizations": {
        "editorWhitespace.foreground": "#93A1A130" // stand as #RRGGBBAA
    }
    

    Solutions guided from : https://code.visualstudio.com/docs/getstarted/themes#_customize-a-color-theme


    Don't forget to ⌘ Command+S save settings to take effect.

提交回复
热议问题