本文介绍了如何更改 VS Code 的“资源管理器"窗口中的字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法更改资源管理器窗口(左侧面板显示工作目录中的文件,而不是您编写代码的编辑器)中的字体?

Is there a way to change the font in the Explorer window (the panel on the left that shows files in your working directory, NOT the editor where you write code)?

推荐答案

实际上有一个 扩展 在 vscode 中提供请求的功能:

There is actually an extension providing the requested feature in vscode:

  • 按照链接中的说明操作
  • .vscodestyles.css 文件中的 .monaco-panel-view 上添加 css 代码.
  • Follow instructions in the link
  • Add css code on .monaco-panel-view in .vscodestyles.css file.

例如:

.monaco-panel-view:not(h3) {
  font-family: "SF Pro Display" !important;
  font-weight: 500 !important;
  font-size: 13.3px !important;
}

注意:要进一步编辑,请使用 -> 切换开发人员工具以找出要编辑的类.使用元素选择器在 css 中查找元素.

Note: for further editing, use -> Toggle developer tools to find out which classes to edit. Use elemnt selector for finding element in the css.

这篇关于如何更改 VS Code 的“资源管理器"窗口中的字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 11:14
查看更多