How to edit default dark theme for Visual Studio Code?

后端 未结 10 2081
执念已碎
执念已碎 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:18

    You cannot "edit" a default theme, they are "locked in"

    However, you can copy it into your own custom theme, with the exact modifications you'd like.

    For more info, see these articles: https://code.visualstudio.com/Docs/customization/themes https://code.visualstudio.com/docs/extensions/install-extension#_your-extensions-folder

    If all you want to change is the colors for C++ code, you should look at overwriting the c++ support colorizer. For info about that, go here: https://code.visualstudio.com/docs/customization/colorizer

    EDIT: The dark theme is found here: https://github.com/Microsoft/vscode/tree/80f8000c10b4234c7b027dccfd627442623902d2/extensions/theme-colorful-defaults

    EDIT2: To clarify:

    • download this file: https://github.com/Microsoft/vscode/blob/80f8000c10b4234c7b027dccfd627442623902d2/extensions/theme-colorful-defaults/themes/dark_plus.tmTheme
    • Modify however you like
    • Generate a theme using Yo Code https://code.visualstudio.com/docs/tools/yocode
    • Copy that theme into your extension folder. Or, if you feel like sharing, publish it on the VS Code marketplace.

提交回复
热议问题