zain
zain

Reputation: 444

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

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

Upvotes: 4

Views: 2176

Answers (1)

Zain Kamaal
Zain Kamaal

Reputation: 146

You can add:

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

for JSX files

and

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

for js files

in the settings.json

Upvotes: 13

Related Questions