简体   繁体   中英

VSCode not auto closing parenthesis in JavaScript files

I am using VSCode for coding my projects but while it adds parenthesis and curly braces in other types of files it doesn't auto adds in js files or JSX files

see here: https://i.stack.imgur.com/Okl3d.gif

I have researched for it and I found that I need to change the Editor: Auto closing Brackets settings and I have set it to languageDefined but still it is not auto-closing the parenthesis

https://i.stack.imgur.com/eLOtJ.png

Please answer how to fix that

Apparently this is a bug in VSCode 1.57.x: https://github.com/microsoft/vscode/issues/127739

For similar issues just search "auto closing" in the issues: https://github.com/microsoft/vscode/issues?q=auto+closing

实际上,这是一个由扩展定义的问题......你是否有机会使用copilot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM