How to change font size in VS Code sidebar?

后端 未结 4 624
深忆病人
深忆病人 2020-12-30 18:17

Querying for fontsize in User Settings window yields only settings for:

  • editor panes,
  • suggest widget,
  • markdown pre
4条回答
  •  粉色の甜心
    2020-12-30 19:09

    Apart from @Mihai Chelaru's answer, I found another plugin which helped me dealing with this issue. The name of the plugin is CustomizeUI.

    CustomizeUI relies on the Monkey Patch Extension to inject custom javascript in VSCode. Here is the settings I use (in settings.json) for my Mac:

    "customizeUI.stylesheet": {
        ".explorer-viewlet .mac": "font-size: 1.2em !important; overflow: auto; border-left:none!important",
    },
    

    Again, this plugin is meant to do more than just changing the font size of the sidebar. But it has some minor advantages over Custom CSS and JS Loader. Like:

    • It won't show Unsupported on the title-bar or won't show any error message like Your installation is corrupted.

    • You do not have to reload settings every time VS Code is updated.

提交回复
热议问题