Syntax error in settings.json after installing extensions in VSCode: Expected comma

Asked 1 years ago, Updated 1 years ago, 91 views

VSCode includes the extension PasteImage.
I want to specify where to save the copied image, but I get an error.

Where to Save: Create an image folder where HTML files are located and save it

PasteImage stores the image in the same location as the HTML file, so I wrote the following in setting.json:(Please ignore the above two lines of code.)

{
    "emmet.variables": {
        "lang": "ja"
    }
    "pasteImage.path": "${currentFileDir}/image"
}

After completing this, an error message saying "Not enough commas" appears.Where should I add it?

Enter a description of the image here

json vscode

2022-09-30 14:55

1 Answers

{
    "emmet.variables": {
        "lang": "ja"
    },  ← Here it is it is!
    "pasteImage.path": "${currentFileDir}/image"
}


2022-09-30 14:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.