如何在 C++ 编辑器的 Visual Studio 2019 中关闭双引号自动完成? [英] How to turn off double quotes auto-completion in Visual Studio 2019 for C++ editor?

查看:75
本文介绍了如何在 C++ 编辑器的 Visual Studio 2019 中关闭双引号自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到 Visual Studio 2019 16.1 版本后,C++ 的代码编辑器补全了双引号字符.当我输入一个双引号 " 时,它会自动将其补全为 "".

After updating to version 16.1 of Visual Studio 2019, the code editor for C++ completes double quotation characters. When I type one double quote " it automatically completes it as "".

如何关闭此功能?我尝试查看设置,但在 C++ 编辑器设置或所有语言设置中找不到.

How to turn this feature off? I tried to look into settings, but could not find in C++ Editors settings or All Languages settings.

更新:它实际上只有在我输入以 L 开头的宽字符串文字时才会完成.例如,当我输入 L" 时,它会自动将其完成为 L""

Update: it actually only completes when I type wide string literal starting with L. For example, when I type L" it auto-completes it to L""

更新 2: 某些 .cpp 文件会发生这种情况,但其他人不会.我目前没有看到任何模式.好像是个bug.

Update 2: it happens for some .cpp files but not for others. I currently do not see any pattern. Seems like a bug.

推荐答案

2019 年 10 月更新:现在从 16.3.2 版开始修复.如果没有,请仔细检查您的设置.

Update October 2019: it is fixed now starting from version 16.3.2. If not, then check your settings carefully.

简短版本:这是 Visual Studio 中的一个错误,希望能得到修复.您可以向上投票这里.

Short version: This is a bug in Visual Studio, and hopefully will be fixed. You can up-vote it here.

更长的版本:我决定向 Visual Studio 团队报告这个错误,但已经有人这样做了.因此,如果您受到此问题的影响,请考虑对其进行投票.

Longer version: I decided to report this bug to Visual Studio Team, but someone already did that. So if you are affected by this issue, consider up-voting it.

链接到 VS 错误跟踪器:成员列表出现时的大括号完成不会将字符放在正确的位置

Link to VS bug tracker: Brace completion when member list is up does not put the character in the right position

请注意,虽然上述错误的标题可能听起来仅影响代码分析,但 VS 团队已将另一个更相关的错误标记为上述错误的副本(C++ 自动引用完成).并且不可能投票给关闭的错误,所以唯一的选择是投票我提到的第一个.

Note, that while title of above bug may sound like only Code Analysis is affected, VS Team have marked another - more relevant bug as a duplicate to the above bug (C++ automatic quote completion). And it is not possible to vote closed bug, so only option is to vote the first one I mentioned.

这篇关于如何在 C++ 编辑器的 Visual Studio 2019 中关闭双引号自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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