VS Code customize sidebar

后端 未结 4 1269
夕颜
夕颜 2021-01-07 22:38

Is there any way to customize sidebar in VS Code? In particular, I want to change the font size. Is there a user setting for that? Or, maybe, I can edit it somehow via style

4条回答
  •  温柔的废话
    2021-01-07 22:46

    Although there is no direct way of customize the sidebar from settings as @Daniel Imms mentioned in his answer, but I found 2 plugins which helped to resolve this issue. You can either one of them if you want.

    1. Custom CSS and JS Loader

    In Custom CSS and JS Loader plugin, you need to create a custom css and then this plugin will inject that code directly in electron-browser/index.html(as VS Code is an electron based editor). I use this CSS in my Mac:

    ".explorer-viewlet .mac": "font-size: 1.2em !important",
    

    2. 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",
    },
    

提交回复
热议问题