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#,如果这有什么区别的话。
Update:Visual Studio 2010 SP1 包含我在下面提到的真正修复(请参阅这个文件 http://support.microsoft.com/kb/983509)。更新后,您应该卸载该扩展,但如果保留它可能不会导致问题。
您在虚拟空间中是否有插入符号(例如,在从上一行按 Enter 键后,插入符号在正确的缩进级别上对齐)?
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 http://github.com/downloads/NoahRic/Random/FixCtrlBackspace.vsix. If you are curious, you can also take a look at the workaround in FixCtrlBackspace.cs http://github.com/NoahRic/Random/blob/master/FixCtrlBackspace.cs. It's essentially just overriding the behavior of Ctrl + Backspace, when the caret is in virtual space, to clear the virtual space.
让我知道这是否有帮助,或者是否会破坏任何内容(我没有对其进行大量测试)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)