Reputation: 7995
I have a very annoying problem in 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.
Take this example code:
When I begin to insert some code at the beginning of the 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
:
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). Is there any way I can prevent this behavior? I find myself working around it all the time.
Upvotes: 41
Views: 5970
Reputation: 171
With Reshaper 2018.3 I found this is how to disable the behavior you're encountering
Go to Resharper
-> Options
-> Enviroment
-> Intellisense
-> Completing Characters
For the option Tab Key
choose Insert
instead of the default Replace
Upvotes: 17
Reputation: 77
I cured this in Visual Studio 2015 (resharper ultimate 2016.3.1) by disabling Resharper IntelliSense.
Go to...
Resharper -> Options -> Environment -> IntelliSense -> General
...and select "Visual Studio".
Upvotes: 1