如何放大VS Code中的文件夹文本?调整代码字号后仍无效
I totally get this frustration—tweaking the editor font size doesn’t touch the sidebar text (like the folder and file names in Explorer), right? Let me walk you through the exact fixes that work every time:
Method 1: Use the Visual Settings Interface
- Open VS Code Settings: Press
Ctrl+,(Windows/Linux) orCmd+,(Mac), or click the gear icon in the bottom-left corner and select "Settings". - In the search bar at the top, type
sidebar font size. - Look for the
Window: Sidebar Font Sizeoption. Adjust the number (default is usually 13 or 14) to your preferred size—you’ll see the sidebar text update instantly as you change it.
Method 2: Manually Edit settings.json
If you prefer working directly with the config file:
- Open the Command Palette: Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac). - Type
Preferences: Open Settings (JSON)and hit Enter. - Add or modify this line inside the JSON object:
Replace"window.sidebarFontSize": 1616with your desired font size, save the file, and the sidebar text will scale up immediately.
Bonus: Full Interface Zoom (If You Want Everything Bigger)
If you want to scale the entire VS Code UI (sidebar, menus, tabs, etc.) instead of just the sidebar text, search for Window: Zoom Level in the settings interface. Adjust the number (positive values zoom in, negative zoom out) to get the overall size you want.
内容的提问来源于stack exchange,提问作者Nisan Ercan Tarhan
相关产品推荐
相关产品推荐

