可以在我的设置中找到问题。
我开始使用MS VS代码,并想应用一些基本设置。他们都可以工作,但是我现在无法添加扩展名,接收到“无法写入用户设置”的错误消息。
似乎我的设置有问题。这是我的代码:
{
"workbench.colorTheme": "One Dark Pro",
"editor.quickSuggestions": {
"other": "on",
"comments": "off",
"strings": "off" },
"[markdown]": {
"editor.quickSuggestions": true,
},
"atomKeymap.promptV3Features": true,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "heading.1.markdown entity.name.section.markdown, heading.1.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#0981D1",
}
},
{
"scope": "heading.2.markdown entity.name.section.markdown, heading.2.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#9cecfb",
}
},
{
"scope": "heading.3.markdown entity.name.section.markdown, heading.3.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#83a4d4",
}
}
{
"scope": "markup.italic",
"settings": {
"foreground": "#ff7b00e0",
"fontStyle": "bold",
}
}
{
"scope": "markup.bold",
"settings": {
"foreground": "#26ca5c",
"fontStyle": "bold",
}
}
]
}
}
I started using MS VS Code and wanted to apply some basic settings. They all do work, however I can't add an extension right now, receiving the error message "unable to write into user settings".
Seems like I have something wrong in my settings.json but I don't know what? Here is my code:
{
"workbench.colorTheme": "One Dark Pro",
"editor.quickSuggestions": {
"other": "on",
"comments": "off",
"strings": "off" },
"[markdown]": {
"editor.quickSuggestions": true,
},
"atomKeymap.promptV3Features": true,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "heading.1.markdown entity.name.section.markdown, heading.1.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#0981D1",
}
},
{
"scope": "heading.2.markdown entity.name.section.markdown, heading.2.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#9cecfb",
}
},
{
"scope": "heading.3.markdown entity.name.section.markdown, heading.3.markdown punctuation.definition.heading.markdown",
"settings": {
"foreground": "#83a4d4",
}
}
{
"scope": "markup.italic",
"settings": {
"foreground": "#ff7b00e0",
"fontStyle": "bold",
}
}
{
"scope": "markup.bold",
"settings": {
"foreground": "#26ca5c",
"fontStyle": "bold",
}
}
]
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误意味着您的设置文件中的JSON已畸形。您在
editor.tokencolorcustomizations
的内部有一些错误。应该是:This error means your JSON in your settings file is malformed. You have some errors inside of
editor.tokenColorCustomizations
. It should be: