首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Visual Studio代码.json文件“预期逗号”错误

Visual Studio代码.json文件“预期逗号”错误
EN

Stack Overflow用户
提问于 2021-03-25 09:02:59
回答 1查看 982关注 0票数 1

我正在尝试更改VS代码中的一些设置,但一直收到预期的逗号错误。我在其中一行得到了这个错误,所以我复制了它,并将它移到了底部,它给了我一个错误,只是把它移到了下一行。

我已经尝试过了,但是所有的答案似乎都是超级小众,vs代码告诉我没有办法解决这个问题,即使他们告诉我有一个错误

代码语言:javascript
复制
{
    "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
}

不知道为什么结尾的"}“出现在底部,但它在我的代码中。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-25 09:05:46

您在第22行"workbench.colorTheme": "Cobalt2"的末尾缺少逗号

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66791607

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档