D
D
Denis2020-12-07 23:28:26
terminal emulator
Denis, 2020-12-07 23:28:26

Can't change terminal shell Visual studio code?

There was a need to change the VSC shell from powershell to Gitbash. But when trying to do this, the following error occurs - "Unable to write to the user settings file. Open the user settings, correct the errors and warnings, and try again."
user file -
In it, VSC swears at the last curly brace.

{
    "window.zoomLevel": 0,
    "editor.formatOnSave": true,
    "files.autoSave": "afterDelay",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "[less]": {
        "editor.defaultFormatter": "Wscats.eno",
    
    "liveSassCompile.settings.generateMap": false,
"liveSassCompile.settings.formats": [
  {
    "format": "expanded",
    "autoprefix": "last 5 versions",
    "extensionName": ".css",
    "savePath": "css"
  },
]
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-12-08
@Denslav

it is logical that it will complain about the curly brace, it's not a valid .json...
I guess it should be like this:

{
"window.zoomLevel": 0,
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[less]": {
"editor.defaultFormatter": "Wscats.eno",
},
"liveSassCompile.settings.generateMap": false,
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"autoprefix": "last 5 versions",
"extensionName": ".css",
"savePath": "css"
},
]
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question