Ctrl-Backspace Visual Studio 2010 [英] Ctrl-Backspace Visual Studio 2010

查看:78
本文介绍了Ctrl-Backspace Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到Visual Studio 2010,发现当我在空白行上按 Ctrl + Backspace 时,它将删除该行,即2008,但随后它也会删除上面一行中的最后一个字符.我试图查看是否有任何设置,但我似乎找不到任何设置.有人知道您是否可以更改此设置,或者是否在2010年将其设置为默认值

I recently upgraded to Visual Studio 2010 and found out that when I press Ctrl + Backspace on an empty line it will delete the line, which is what it did in 2008, but then it will also delete the last character on the line above. I have tried to see if there is any settings anywhere but i cant seem to find any. Does anyone know if you can change this or did they make it default in 2010

我正在使用C#,如果有帮助的话.

Im using C#, if that makes a difference.

推荐答案

更新:Visual Studio 2010 SP1包含我在下面提到的真实修补程序(请参见此文档).更新后,您应该卸载该扩展程序,但是如果保留该扩展程序可能不会引起问题.

Update: Visual Studio 2010 SP1 contains the real fix that I mentioned below (see the "Visual Studio Editor" section of this document). Once you've updated, you should uninstall the extension, though it probably won't cause issues if it is left around.

您是否在虚拟空间中插入了插入符号(例如,在按了上一行的回车键之后,插入符号已在正确的缩进级别对齐)?

Do you have the caret in virtual space (e.g. after hitting enter from a previous line, and the caret is aligned at the correct indent level)?

如果是这样,这是RTM中的错误.我已经在我们的内部版本中对其进行了修复,尽管这可能对您没有太大帮助.我继续写了一个小的扩展来解决"该问题,您可以在此处下载.如果您好奇,也可以在 FixCtrlBackspace.cs中查看解决方法.当插入符号位于虚拟空间中时,它实际上只是覆盖 Ctrl + Backspace 的行为,以清除虚拟空间.

If so, this is a bug in the RTM. I've already fixed it in our internal builds, though that's probably not very helpful for you. I went ahead and wrote a small extension that "fixes" the issue, which you can download here. If you are curious, you can also take a look at the workaround in FixCtrlBackspace.cs. It's essentially just overriding the behavior of Ctrl + Backspace, when the caret is in virtual space, to clear the virtual space.

让我知道这是否有帮助,或者有什么坏处(我没有对它进行大量测试).

Let me know if that helps, or if it breaks anything (I didn't test it very heavily).

这篇关于Ctrl-Backspace Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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