好的,我會直截了當地說:
我不知道 JSON 檔案。我嘗試將許多在線解決方案直接復制粘貼到 settings.json 中,以禁用 VS Code 的斜體字體。他們都沒有作業過。
這是我嘗試過的:
uj5u.com熱心網友回復:
將此添加到
settings.json"editor.tokenColorCustomizations": { "textMateRules": [ { "scope": [ "comment", "punctuation.definition.comment", ], "settings": { "fontStyle": "" } } ] },uj5u.com熱心網友回復:
就我而言,解決方案是將我在 VS Code 的擴展頁面上找到的這段代碼粘貼到
settings.json:"editor.tokenColorCustomizations": { "[Tokyo Night]": { // or "[Tokyo Night Storm]" "textMateRules": [{ "scope": [ "comment", "meta.var.expr storage.type", "keyword.control.flow", "keyword.control.return", "meta.directive.vue punctuation.separator.key-value.html", "meta.directive.vue entity.other.attribute-name.html", "tag.decorator.js entity.name.tag.js", "tag.decorator.js punctuation.definition.tag.js", "storage.modifier" ], "settings": { "fontStyle": "" } }] } },據我了解,這直接解決了我的顏色主題,而其他解決方案則沒有。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/313898.html上一篇:帶定時器的移動圖片框
