简体   繁体   English

Visual Studio 2010文本编辑器越野车插入符

[英]Visual Studio 2010 text editor buggy caret

I've had VS 2010 installed for about a year, and it's been running fine up until around a month ago. 我已经安装了VS 2010大约一年了,直到大约一个月前它一直运行良好。

Ever more frequently, and for no immediately deducible reason, the text editor starts moving the caret to weird places when I type "::", ".", "->", and the like. 当我键入“ ::”,“。”,“->”等时,文本编辑器会更加频繁地(并且没有立即可推论的原因)开始将插入符号移动到怪异的位置。

I've done a resetsettings to no avail. 我做了一个resetsettings无济于事。

Any ideas? 有任何想法吗?

EDIT - More detail: 编辑-更多详细信息:

When typing "::", the caret will jump to the beginning of the line, or somewhere in the middle of the first symbol on that line. 键入“ ::”时,插入符号将跳至该行的开头,或该行第一个符号的中间。

When completing a pair of "<>", if there are any nested occurrences thereof, the last ">" is deleted or justified. 当完成一对“ <>”时,如果有任何嵌套出现,则最后一个“>”将被删除或调整。 For example: 例如:

welcome_mat<
    tuba<
        yip<int>,
        orange<float> // <- after typing newline here...
    > // <- this was the original closing ">" for "welcome_mat" (I didn't type a ">" yet)
// ^---- caret is now here

I usually close my templates when I type them, but when arranging multiple arguments, I place them vertically and tend to close them after filling them out. 我通常在键入模板时将其关闭,但是在排列多个参数时,我将它们垂直放置,并在填写它们后倾向于将其关闭。 This doesn't happen on single lines. 单行不会发生这种情况。

尝试重新安装它,如果不起作用,请查看您的键盘快捷键,也许您有一些奇怪的快捷键绑定使插入符号移动。

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

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