作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
目前正在使用 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": ""
}
}
]
}
最佳答案
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"
}
},
"italic"
、
"bold"
、
"underline"
、
“斜体粗体下划线”
)。如果您想在编辑器中更改“粗体”文本的字体粗细,那是不可能的。
关于fonts - 如何让 VS Code 更改斜体的字体粗细?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55691498/
我是一名优秀的程序员,十分优秀!