如何在VS Code侧边栏中更改字体大小?
在User Settings
窗口中查询fontsize
只会产生以下设置:
Querying for fontsize
in User Settings
window yields only settings for:
- 编辑器窗格
- 建议的小部件
- 降价预览,
- 集成终端
如下所示:
对sidebar
进行相同操作会得到更差的结果:
Doing the same for sidebar
gives even poorer results:
在编辑器窗格和边栏外观中具有不同大小的字体...让我们解决:不太好.我是否刚刚发现了这个出色工具的最大遗漏?
Having fonts of different sizes in editor panes and sidebar looks... let's settle with: not too nice. Have I just found the greatest omission of this awesome tool?
这是功能请求一段时间.简短的答案是现在没有VSCode设置,该设置可让您自定义边栏字体大小.有一个 @lindesvard在同一个问题线程中提出的一种变通解决方案涉及使用自定义CSS和JS Loader 扩展名进行加载一个自定义CSS文件,如果您愿意尝试的话,可以修改边栏样式.
This has been a feature request for some time. The short answer is right now there's no VSCode setting that allows you to customize the sidebar font size. There is a hacky workaround solution proposed by @lindesvard in the same issue thread that involves using the Custom CSS and JS Loader extension to load in a custom CSS file that modifies the sidebar styling if you're willing to experiment with it.
要使此工作正常进行,请遵循扩展名详细信息中的入门"部分,然后将自定义文件的URL添加到"vscode_custom_css.imports": [""]
数组. (请注意,在Windows上,我的如下所示:"vscode_custom_css.imports": ["file:///C:\\dev\\vscode-styling.css"]
)
To get this working follow the Getting Started section in the extension details, then add URLs to your custom files to the "vscode_custom_css.imports": [""]
array. (Note that on Windows mine looks like the following: "vscode_custom_css.imports": ["file:///C:\\dev\\vscode-styling.css"]
)
在添加 @PSVapour在后面的评论中提到的CSS之前和之后:
请注意,这也会影响命令调色板的字体.
Note that this also affects the command palette font.