Visual Studio Code .json 檔案"expected comma"錯誤



我试图更改VS代码中的一些设置,但一直收到预期的逗号错误。我在其中一行遇到了这个错误,所以我复制了它,并将其移动到底部,结果它湿透了,给了我一个错误,却将它向下移动到了下一行。

我试着查了一下,但所有的答案似乎都非常小众,vs代码告诉我没有办法解决它,尽管他们告诉我有一个错误

{
"python.pythonPath": "/usr/local/bin/python3",
"workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
],
"files.autoSave": "afterDelay",
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 17,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.fontLigatures": true,
"workbench.sideBar.location": "right",
"window.title": "${activeEditorShort}${separator}${rootName}${rootPath}",
"tabnine.experimentalAutoImports": true,
"kite.showWelcomeNotificationOnStartup": false,
"AREPL.pythonPath": "python3",
"code-runner.runInTerminal": true,
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
"workbench.colorTheme": "Cobalt2"
"files.trimTrailingWhitespace": true,
"editor.fontWeight": "400",
"prettier.eslintIntegration": true,
"editor.cursorStyle": "line",
"editor.cursorWidth": 5,
"editor.cursorBlinking": "solid",
"editor.renderWhitespace": "all",
"editor.lineHeight": 25,
"editor.letterSpacing": 0.5,
"editor.semanticHighlighting.enabled": false
}

不知道为什么关闭"}"显示在底部,但它在我的代码中。

第22行"workbench.colorTheme": "Cobalt2"末尾缺少一个逗号

相关内容

最新更新