TomXx

如何更改界面字体

  •  1
     
  •   TomXx · Jun 5, 2025 · 3199 views
    This topic created in 528 days ago, the information mentioned may be changed or developed.

    Chrome 在某次更新之后中文的默认字体变了,但是在设置里面可以改回去,但是 VSCode 貌似并没有提供这个功能,导致在 1080p 分辨率下一些较小的中文字体显示很模糊。 1749111350521.jpg 1749111414945.png 有没有人知道要怎么修改呢?

    7 replies  •  2025-06-07 15:52:30 +08:00
    NessajCN
    NessajCN
    Jun 5, 2025
    2
    你是什么系统?
    Linux 桌面要改 fontconfig
    TomXx
    TomXx
    OP
    Jun 5, 2025
    3
    @NessajCN Windows 的
    TomXx
    TomXx
    OP
    Jun 5, 2025
    4
    搞定了,需要配合插件 Custom CSS and JS Loader ,
    首先新建一个 css 文件,自定义 CSS 内容如下:
    ```
    .monaco-workbench,
    .sidebar,
    .title {
    font-family: "微软雅黑", sans-serif !important;
    }
    ```
    接着在 VSCode 的 settings.json 文件中新增
    "vscode_custom_css.imports": [
    "file:///C:\\path\\to\\my-vscode-style.css"
    ],
    之后用管理员权限打开 VSCode ,Ctrl + Shift + P 输入命令 Reload Custom CSS and JS ,重启应该就生效了。
    重启后会提示损坏,直接忽略即可
    jroger
    jroger
    Jun 7, 2025
    6
    这个是微软 3 月或 4 月进行安全更新的时候做的事儿,是系统层面的。具体链接找不到了,这里有说这个事儿的。
    https://www.chiphell.com/thread-2687737-1-1.html
    jroger
    jroger
    Jun 7, 2025
    7
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5027 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:56 · PVG 09:56 · LAX 17:56 · JFK 20:56
    ♥ Do have faith in what you're doing.