{ "scope": ["text.html entity.name.tag", "text.html punctuation.tag"], "settings": { "foreground": "#8ec07c", "fontStyle": "bold" } 转换成 vscode 的 json
时间: 2023-07-22 20:10:23 浏览: 86
这段代码已经是有效的 JSON 格式,不需要转换。你可以直接将它放在 Visual Studio Code 的 `settings.json` 文件中,或者在 Visual Studio Code 的设置界面中添加该配置。
如果你想将这段代码添加到 `settings.json` 文件中,可以按照以下步骤进行操作:
1. 打开 Visual Studio Code。
2. 使用快捷键 `Ctrl + ,` 或者从菜单栏中选择 "文件" -> "首选项" -> "设置" 打开设置界面。
3. 在设置界面中,点击右上角的 "打开设置 (JSON)" 按钮,以打开 `settings.json` 文件。
4. 将你提供的 JSON 代码粘贴到 `settings.json` 文件中,确保它是有效的 JSON 格式。
5. 保存文件。
这样配置就会生效,并将 HTML 标签的内容显示为粗体,颜色为 "#8ec07c"。请确保你已经安装了适用于 Visual Studio Code 的相关插件,如 "Custom CSS and JS Loader" 插件,以使这些样式生效。
相关问题
"editor.tokenColorCustomizations": { "[One Dark Pro]": { "textMateRules": [ { "scope": [ "text.html entity.name.tag", "text.html punctuation.tag" ], "settings": { "fontStyle": "bold" } } ] } }, "editor.fontSize": 20 我只想让 这个 text html 生效 其他的不生效 字体大小
如果你只想让 `text.html` 的字体大小生,而其他部分保持默认字体大小,你可以使用以下代码:
```json
"editor.tokenColorCustomizations": {
"[One Dark Pro]": {
"textMateRules": [
{
"scope": ["text.html entity.name.tag", "text.html punctuation.tag"],
"settings": {
"fontStyle": "bold"
}
}
]
}
},
"editor.tokenColorCustomizationsOverr
阅读全文
相关推荐
















