Jayy
Jayy

Reputation: 93

VS Code suddenly stopped closing parenthesis, brackets and curly brackets

VS Code suddenly stopped closing parenthesis, brackets and curly brackets. This started 2 days ago. I have deleted the extensions I added during these 2 days but no use.

This happens only in JavaScript files, btw.

what could cause this issue with VS Code? Has anyone else run into it before?

Upvotes: 1

Views: 1547

Answers (2)

Jayy
Jayy

Reputation: 93

Github copilot was causing this issue. In case someone faces the same issue, disable GitHub Copilot, reload VS Code, and it should work.

if you do not want to disable co-pilot, you can add the following to your vscode settings.json:

    "[javascript]": {
        "editor.autoClosingBrackets": "languageDefined"
    },

Upvotes: 3

Hemesh
Hemesh

Reputation: 107

I faced a similar issue to that. Remove or disable GitHub Copilot from VS Code and then restart VS Code. It worked for me; I hope it works for you. If not, please do let me know.

Upvotes: 1

Related Questions