当前使用带有斜体的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": ""
}
}
]
}
答案 0 :(得分:1)
您必须按照以下说明更改用户设置
如果您使用的是JSON,则添加以下设置:
"editor.fontWeight": "normal",
"editor.fontSize": 14,
"editor.fontFamily": "Consolas, 'Courier New', monospace"'
当前,我正在使用v1.30.1
答案 1 :(得分:0)
this pc > local disc > Users > pc > .vscode > extensions >(改变你的 texmate 范围的扩展)> 主题 >(.JSON 文件右键单击并在文本编辑器中编辑(如记事本或 vscode 本身)) 这是一个可能的样子:
{
"name": "Comment",
"scope": [
"comment",
"string.comment"
],
"settings": {
"foreground": "#3b6b5d",
"fontStyle": "italic"
}
},
"italic"
、"bold"
、"underline"
、"italic bold underline"
)。
如果您想在编辑器中更改“粗体”文本的字体粗细,那么这是不可能的。