Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Resharper intellisense replace my code?

Tags:

c#

resharper

With Resharper 6.1, when I type something like... widget.PropertyA

and then put my cursor in front of the widget symbol like this...

|widget.PropertyA

and start typing another symbol, R# intellisense pops up. If I choose a suggested symbol, then R# replaces the widget symbol with my newly chosen symbol.

I can see how this might be useful at times, but the vast majority of the time, I just want to type more code in front of widget and don't want it to be replaced. Does anyone know if this behavior is configurable?

Thanks.

like image 596
Jeremy Foster Avatar asked Feb 01 '12 20:02

Jeremy Foster


People also ask

Does resharper slow down visual studio?

Resharper is a great Visual Studio productivity extension but on the other hand it slows down significantly the IDE, especially when working with large solutions.

How do you autofill VS code?

Pressing Tab or Enter will insert the selected member. You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript).

How do I enable auto complete in Visual Studio?

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.


1 Answers

I don't believe it is configurable. It seems to be by design that Tab overwrites code. It will even highlight the segment of code that would be replaced.

Instead of hitting Tab to select your symbol, use Enter instead. It will insert the new code without overwriting the existing code.

like image 93
Brandon Avatar answered Nov 18 '22 04:11

Brandon