简体   繁体   English

VSCode 不会在 JavaScript 文件中自动关闭括号

[英]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我正在使用 VSCode 对我的项目进行编码,但是当它在其他类型的文件中添加括号和花括号时,它不会自动添加到 js 文件或 JSX 文件中

see here: https://i.stack.imgur.com/Okl3d.gif见这里: 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我已经研究过它,我发现我需要更改Editor: Auto closing Brackets设置,我已将其设置为languageDefined但它仍然没有自动关闭括号

https://i.stack.imgur.com/eLOtJ.png 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显然这是 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对于类似的问题,只需在问题中搜索“自动关闭”: https : //github.com/microsoft/vscode/issues?q= auto+ closed

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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