vscode 推荐字体 Operator Mono和FiraCode 的安装,和配置

1.下载字体:https://github.com/beichensky/Font

#注意,要全部下载完,安装,否则效果不全;

2.配置。settings里面增加

    "editor.fontLigatures": true, // 这个控制是否启用字体连字
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "name": "italic font",
                "scope": [
                    "comment",
                    "keyword",
                    "storage",
                    "keyword.control.import",
                    "keyword.control.default",
                    "keyword.control.from",
                    "keyword.operator.new",
                    "keyword.control.export",
                    "keyword.control.flow",
                    "storage.type.class",
                    "storage.type.function",
                    "storage.type",
                    "storage.type.class",
                    "variable.language",
                    "variable.language.super",
                    "variable.language.this",
                    "meta.class",
                    "meta.var.expr",
                    "constant.language.null",
                    "support.type.primitive",
                    "entity.name.method.js",
                    "entity.other.attribute-name",
                    "punctuation.definition.comment",
                    "text.html.basic entity.other.attribute-name.html",
                    "text.html.basic entity.other.attribute-name",
                    "tag.decorator.js entity.name.tag.js",
                    "tag.decorator.js punctuation.definition.tag.js",
                    "source.js constant.other.object.key.js string.unquoted.label.js",
                ],
                "settings": {
                    "fontStyle": "italic",
                }
            },
        ]
    },
    "terminal.integrated.fontFamily": "monospace",

文章参考:

https://blog.csdn.net/zgd826237710/article/details/94137781

猜你喜欢

转载自www.cnblogs.com/wangdaodao/p/12902648.html