I have a very annoying problem in Visual Studio.
(我在Visual Studio中有一个非常烦人的问题。)
(My version is 2010 and I have ReSharper and VsVim installed, but I don't think that matters.) When I go to add text before some code at the beginning of some existing code, autocomplete likes to overwrite some of the existing code. ((我的版本是2010,已经安装了ReSharper和VsVim,但我认为这并不重要。)当我在某些现有代码的开头添加一些代码之前的文本时,自动完成功能会覆盖一些现有代码。)
Take this example code:
(请看以下示例代码:)
When I begin to insert some code at the beginning of the string.Format
:
(当我开始在string.Format
的开头插入一些代码时:)
And then I use Tab to autocomplete, it overwrites string
, whereas what I wanted was the autocompleted code to be inserted before string
:
(然后我使用Tab来自动完成,它会覆盖string
,而我想要的是将自动完成的代码插入string
之前:)
I don't want it to automatically delete the text after what I am autocompleting.
(我不希望它在我自动完成后自动删除文本。)
If I want the text deleted, I can delete it myself very easily (particularly with VsVim). (如果我想删除文本,我可以很容易地删除它(尤其是使用VsVim)。)
Is there any way I can prevent this behavior? (有什么办法可以防止这种行为?)
I find myself working around it all the time. (我发现自己一直在努力。)
ask by Keith Pinson translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…