gpt4 book ai didi

fonts - 如何让 VS Code 更改斜体的字体粗细?

转载 作者:行者123 更新时间:2023-12-05 08:07:15 36 4
gpt4 key购买 nike

目前正在使用 font斜体。不幸的是,斜体有点难以阅读,我怀疑改变字体粗细使它们不那么粗体会起到作用。任何想法如何做到这一点? (包括设置和屏幕截图)

  "editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
//following will be in italics (=Pacifico)
"comment",
"entity.name.type.class", //class names
"keyword", //import, export, return…
//"support.class.builtin.js", //String, Number, Boolean…, this, super
"storage.modifier", //static keyword
"storage.type.class.js", //class keyword
"storage.type.function.js", // function keyword
"storage.type.js", // Variable declarations
"keyword.control.import.js", // Imports
"keyword.control.from.js", // From-Keyword
//"entity.name.type.js", // new … Expression
"keyword.control.flow.js", // await
"keyword.control.conditional.js", // if
"keyword.control.loop.js", // for
"keyword.operator.new.js", // new
],
"settings": {
"fontStyle": "italic",
}
},
{
"name": "HTML Attributes",
"scope": [
"text.html.basic entity.other.attribute-name.html",
"text.html.basic entity.other.attribute-name"
],
"settings": {
"fontStyle": "italic",
}
},
{
"scope": [
//following will be excluded from italics (My theme (Monokai dark) has some defaults I don't want to be in italics)
"invalid",
"keyword.operator",
"constant.numeric.css",
"keyword.other.unit.px.css",
"constant.numeric.decimal.js",
"constant.numeric.json",
"entity.name.type.class.js"
],
"settings": {
"fontStyle": ""
}
}
]
}

enter image description here

最佳答案

this pc > local disc > Users > pc > .vscode > extensions > (your extension that changes your texmate scopes) > themes > (.JSON file right click and edit in a text editor (like notepad or vscode itself))这是一个可能的样子:

    {
"name": "Comment",
"scope": [
"comment",
"string.comment"
],
"settings": {
"foreground": "#3b6b5d",
"fontStyle": "italic"
}
},
在这里您可以将 fontStyle 编辑为您想要的(例如: "italic""bold""underline"“斜体粗体下划线”)。如果您想在编辑器中更改“粗体”文本的字体粗细,那是不可能的。

关于fonts - 如何让 VS Code 更改斜体的字体粗细?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55691498/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com