Fonts 如何让VS代码更改斜体的字体大小?
当前使用带斜体的。不幸的是,斜体字有点太难读了,我怀疑改变字体的粗体字会起到效果。有什么办法吗?(包括设置和屏幕截图)Fonts 如何让VS代码更改斜体的字体大小?,fonts,visual-studio-code,Fonts,Visual Studio Code,当前使用带斜体的。不幸的是,斜体字有点太难读了,我怀疑改变字体的粗体字会起到效果。有什么办法吗?(包括设置和屏幕截图) 您必须根据以下内容更改用户设置 文件>首选项>设置 选择用户设置 选择文本编辑器>字体 如果您使用的是JSON,请添加以下设置: “editor.fontwweight”:“正常”, “editor.fontSize”:14, “editor.fontFamily”:“Consoleas,'Courier New',monospace” 目前,我正在使用v1.30.1这台电脑>
您必须根据以下内容更改用户设置
“editor.fontwweight”:“正常”,
“editor.fontSize”:14,
“editor.fontFamily”:“Consoleas,'Courier New',monospace”
目前,我正在使用v1.30.1这台电脑>本地光盘>用户>电脑>.vscode>扩展>(你的扩展可以改变你的texmate范围)>主题>(.JSON文件右键单击并在文本编辑器中编辑(如记事本或vscode本身)) 下面是一个人的样子:
{
“名称”:“注释”,
“范围”:[
“评论”,
“string.comment”
],
“设置”:{
“前景”:“3b6b5d”,
“字体样式”:“斜体”
}
},
这不会改变所有类型的字体设置吗?我的目标是只修改斜体。请在回答之前阅读问题,此答案会全局更改VS代码的字体,这不是问题所在。我支持此建议。我不得不删除电脑前面的超轻斜体字体,以便VS代码只能识别正常的斜体。如果VS代码提供了一种可以轻松定制的方法,那就太好了。有人找到了这样做的方法吗?
"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": ""
}
}
]
}