如何让 vscode 在插入时停止覆盖右括号 [英] How to make vscode stop overriding closing parentheses on insertion

查看:27
本文介绍了如何让 vscode 在插入时停止覆盖右括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试添加右括号时,它总是覆盖右边的下一个括号.

When I try to add closing parentheses, it always override the next parentheses to the right.

这是一个屏幕截图(看起来我按下了键盘上的右键,但实际上我插入了一个新的右括号):

Here is a screen capture (it looks like I hit the right-key on the keyboard, but I'm actually inserting a new closing parentheses):

是否可以改变这种行为?

Is it possible to change this behavior?

推荐答案

Vscode 终于解决了这个问题,你不需要做任何事情来获得新的行为.现在它只会吞下自动添加的括号,所以一切都按预期进行.如果您已经在设置中禁用了 autoClosingBrackets 选项,建议现在重新启用.

Vscode has finally fixed this issue, and you don't need to do anything in order to get the new behaviour. Now it will swallow only brackets that were automatically added, so everything works as expected. If you already disabled the autoClosingBrackets option from the settings, it is recommended to turn it on again now.

这篇关于如何让 vscode 在插入时停止覆盖右括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆