提问人:Jade V. 提问时间:10/30/2023 更新时间:10/30/2023 访问量:40
VSCode - 设置更改时出错:“无法写入用户设置。请打开用户设置以更正其中的错误/警告,然后重试。
VSCode - error on setting change: 'Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again.'
问:
根据标题,我在更改设置时收到此错误:“无法写入用户设置。请打开用户设置以更正其中的错误/警告,然后重试。
对此有一点需要注意,因为我仍然可以更改一些设置 - 编辑器字体大小、颜色主题、默认的浅色和深色主题等
也就是说,我正在尝试编辑这些设置: vscode 设置
这是我的settings.json文件:
{
"liveServer.settings.donotShowInfoMsg": true,
"explorer.confirmDelete": false,
"explorer.compactFolders": false,
"workbench.startupEditor": "none",
"csharp.suppressDotnetInstallWarning": true,
"dotnet.server.useOmnisharp": true,
"explorer.sortOrder": "type",
"git.enableSmartCommit": true,
"breadcrumbs.enabled": false,
"liveSassCompile.settings.generateMap": false,
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": "~/",
"savePathReplacementPairs": null
}
],
"liveSassCompile.settings.autoprefix": [],
"editor.formatOnSave": true,
"[scss]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
"extensions.closeExtensionDetailsOnViewChange": true,
"editor.hover.delay": 500,
"editor.padding.bottom": 10,
"editor.padding.top": 10,
"editor.fontFamily": "InputSerif-MediumItalic",
"editor.accessibilitySupport": "off",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"prettier.singleQuote": true,
"editor.fontVariations": true,
"html.autoClosingTags": false,
"editor.suggest.showWords": false,
"favouriteThemes.pinnedThemes": [
"Darkside Light (rainglow)",
"Monokai",
"Solarized Light",
"Stealth Contrast (rainglow)"
],
"editor.tabSize": 2,
"prettier.bracketSameLine": true,
"prettier.jsxSingleQuote": true,
"prettier.singleAttributePerLine": true,
"workbench.preferredDarkColorTheme": "Monokai",
"tailwind-fold.foldStyle": "QUOTES",
"tailwind-fold.unfoldIfLineSelected": true,
"tailwind-fold.foldedText": ".....",
"tailwind-fold.showTailwindImage": false,
"tailwind-fold.foldedTextColor": "#6bc9ff",
"workbench.colorTheme": "Monokai",
"workbench.preferredLightColorTheme": "Darkside Light (rainglow)",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"csharp.suppressDotnetRestoreNotification": true,
"window.autoDetectColorScheme": true,
"workbench.fontAliasing": "auto",
"editor.detectIndentation": false
}
我用 JSON linter 检查了它,没有错误。我还尝试使用 Extension Bisect 命令,它说这是 VSCode 的问题,所以我知道它不是扩展在做这件事。在使用“默认”配置文件时尝试更改设置时,我遇到了同样的错误。我已经重新安装了VSCode。我已经检查了可能来自以前安装的扩展程序的任何设置,但没有。
答: 暂无答案
评论