Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 968
zain Avatar asked Sep 12 '25 01:09

zain


1 Answers

You can add:

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

for JSX files

and

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

for js files

in the settings.json

like image 64
Zain Kamaal Avatar answered Sep 13 '25 16:09

Zain Kamaal