visual-studio-code - 在 VSCode 中更改 Mongoose Schema 中键的颜色
问题描述
我想在 VSCode 中更改猫鼬模式中键的颜色。
textmate 范围显示为“constant.other.object.key.js”。但是,如果我在 settings.json 的“editor.tokenColorCustomizations”中将颜色应用于相同的颜色,则它不起作用,但如果我应用 fontStyle,它会起作用..
我的settings.json:
"editor.tokenColorCustomizations": {
// "strings": "#407dcc",
"variables": "#f32020",
"textMateRules": [
{
"scope": "constant.other.object.key.js",
"settings": {
"foreground": "#fd3e3e",
"fontStyle": "italic underline"
}
}
]
},
正如你在这里看到的,字体样式斜体和下划线被应用,但是前景红色没有被应用。
任何帮助深表感谢
解决方案
推荐阅读
- webpack - 使用 stylelint 从 linting 中排除导入的供应商文件
- google-chrome-extension - Chrome 扩展后台脚本有时在安装或更新后不运行
- python - 图例重复并出现在matplotlib中的图形之外
- python - Django 管理员更改密码链接已损坏
- google-cloud-platform - 将 GCR 图像从一个项目复制到另一个项目
- mysql - 如何使用 MySQL 或 R 获取 JSON 是否包含特定文本
- r - 将文件读入 R 比 while{rbind(read.table)} 更快
- python - 将对象类型的字段扩展为熊猫中的单独字段
- javascript - 在 React 中关闭对话框时保存计数变量
- javascript - page.evaluate 中的 Puppeteer XMLHttpRequest 是阻塞代码