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.
Go to Visual Studio Code's settings and type "overtype" in the search bar, and set it to 'never'.
Go to Tools | Options | Text Editor | C/C++. This dialog displays a window that allows you to toggle Automatic brace completion. Automatic brace completion is the feature where, when you type { , a corresponding } is automatically typed for you.
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
Try using Enter or Space instead of Tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With