又是一个问题又回到了808。
最近我遇到了一些问题。我今天正在学习TypeScript,并且陷入了一些灾难性的困境。我正在尝试将BASH安装到VS代码中,但收到以下错误。
这是我收到的错误-
Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again.
这是我在 “ settings.json” 中输入的代码。
以下代码不起作用。
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe",
这是我的settings.json文件的摘录
// Place your settings in this file to overwrite default and user settings.
{
"window.zoomLevel": -1,
"workbench.colorTheme": "Dracula Soft",
"workbench.settings.editor": "json",
"workbench.settings.useSplitJSON": true,
"editor.formatOnSave": true
"emmet.triggerExpansionOnTab": true
"files.exclude": "out": false
"search.exclude": "out": true
"typescript.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
}
答案 0 :(得分:0)
这是很多工作。为什么不通过Windows安装Bash。我做到了,它在VS Code中也能正常工作。如果这样做的话,您就无需搞混VS CODE或JSON中的任何配置。
https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
让我知道是否有帮助!