我有一台 Windows 机器,我可以将一些标记设为粗体和斜体。但是,在我的 Mac 上,即使我在两台机器上都有相同的 JSON 文件,我也无法同时保留两者。如果我输入 `fontStlye: "italic bold",它只会在我的 mac 上注册 "italic" 并忽略 "bold",但会在我的 Windows 机器上同时注册 "italic" 和 "bold"。 这是我拥有的 JSON 文件的方式:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": ["punctuation.definition.comment", "comment"],
"settings": {
"foreground": "#0578fc",
"fontStyle": "italic bold"
}
},
{
"scope": [
//following will be in italic (=FlottFlott)
"entity.name.type.class", //class names
"keyword", //import, export, return…
"storage.modifier", //static keyword
"storage.type", //class keyword
"support.class.builtin",
"keyword.control",
"constant.language",
"entity.other.attribute-name",
"entity.name.method"
//make those value bold
],
"settings": {
"fontStyle": "italic bold "
}
},
{
"scope": [
//following will be excluded from italics (VSCode has some defaults for italics)
"invalid",
"keyword.operator",
"constant.numeric.css",
"keyword.other.unit.px.css",
"constant.numeric.decimal.js",
"constant.numeric.json"
],
"settings": {
"fontStyle": ""
}
}
]
},
"workbench.colorTheme": "Cobalt2",
"editor.linkedEditing": true,
"explorer.confirmDelete": false,
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 18,
"editor.fontFamily": " 'Fira Code iScript', 'Fira Code', 'Courier New', monospace",
"json.format.enable": true,
我尝试更改主题,并寻找两台机器之间的设置差异,但它们是同步的,所以什么都没有改变