【问题标题】:VS Code customize file explorer window color themeVS Code 自定义文件资源管理器窗口颜色主题
【发布时间】:2016-08-24 19:59:57
【问题描述】:

有人知道如何在 VS Code 中自定义文件浏览器窗口颜色主题吗?还有如何自定义行号颜色?

例如,当使用内置的高对比度颜色主题时,我可以看到文件资源管理器和行号颜色不同。但是在使用扩展颜色主题(如材料主题)时,我找不到自定义颜色的方法。

【问题讨论】:

    标签: visual-studio-code vscode-extensions


    【解决方案1】:

    此功能尚未实现,请在GitHub Issue 上为功能请求投票。

    【讨论】:

      【解决方案2】:

      来自你的settings.jsonCtrl+,

      "workbench.colorCustomizations": {
          "sideBar.background": "#424d66",
          "list.hoverBackground": "#41a6d9",
      }
      

      文件资源管理器使用sidebarlist 颜色。

      行号颜色:

      "editorLineNumber.foreground": "#41a6d9",
      "editorLineNumber.activeForeground": "#ff6a00",
      

      https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-colors

      【讨论】:

      • IMO 浏览器列表非常紧凑。有没有办法增加每个项目的高度?
      • 仅当您放大整个界面时。
      【解决方案3】:

      假设您想在其中获得一个白色侧边栏和黑色文本,您需要像这样编辑您的 settings.json:

      "workbench.colorCustomizations": {
      "sideBar.background": "#ffffff",
      "sideBar.foreground": "#000000",
      "list.hoverForeground": "#ffffff" 
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-02-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多