Auto closing brackets in visual-studio-code not working for js and jsx files

Viewed 1401

I am using vscode and it adds a closing bracket or parenthesis if you add the opening bracket or parenthesis but while I use js files or JSX files it doesn't add the closing pair.

Please answer how to fix this issue

1 Answers

You can add:

"[javascriptreact]": {"editor.autoClosingBrackets": "always"}

for JSX files

and

"[javascript]": {"editor.autoClosingBrackets": "always"}

for js files

in the settings.json

Related