Visual Studio Code change font size for file explorer tray?

前端 未结 10 1762
青春惊慌失措
青春惊慌失措 2021-01-31 01:11

How do I change the font size for the file explorer in Visual Studio Code? There is not an option in the settings.json file.

相关标签:
10条回答
  • 2021-01-31 01:30

    I've found that setting the zoom level in settings.json works well for this:

    "window.zoomLevel": 1
    
    0 讨论(0)
  • 2021-01-31 01:31

    I have set

    "window.zoomLevel": -1 and "editor.fontSize": 16.5

    it works great here's a preview,

    here's a preview

    0 讨论(0)
  • 2021-01-31 01:33

    The decent way to do is to edit the "window.zoomLevel": 0, It changes everything on the screen from Project Explorer to your Font.

    Also, You can customize only the font by "editor.fontSize": 15

    P.S 15px is my personal choice.

    0 讨论(0)
  • 2021-01-31 01:39

    Been looking for this answer for a while now. Finally found it on a different thread: https://stackoverflow.com/a/50783324.

    Essentially you override the keyboard shortcuts for View:ZoomIn and View:ZoomOut with the ones for "Editor Font Zoom In" and "Editor Font Zoom Out". Note that you don't need remove the View-based shortcuts, just enter the Editor ones and they'll move to the top and override.

    Works perfect.

    https://code.visualstudio.com/updates/v1_24#_font-zoom-commands

    Kudos to czen

    0 讨论(0)
提交回复
热议问题