javascriptvisual-studio-codeintellisensejavascript-intellisense

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?


Solution

  • 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"
        },