Googled this, and looked around the forums, but can't see anything related to it. I think this is a feature of ReSharper, rather than a bug, but I don't like how it works, and I'd like to be able to turn it off.
JetBrains ReSharper 6.0 C# Edition
Build 6.0.2202.688 on 2011-06-29T20:14:16
Visual Studio 10.0.40219.1.
If I disable ReSharper, the "problem" goes away. Here's what happens.
If we look at an example using LINQ, with the following code:
var user = c.Users.FirstOrDefault(u => u.UserID == userID && u.EmailAddress == emailAddress && u.ActivationKey == activationKey);
If I wanted to change "FirstOrDefault" to "First" (which is a method that can accept exactly the same predicate as FirstOrDefault), and typed "Fir", then tab, space or enter, it removes the entire contents of the line, ending up with:
var user = c.Users.First();
I have some members which are much larger than this, making use of constructor initializers, additional linq statements and lambdas etc... I often come across this issue.
I appreciate I can use the arrow keys to halt intellisense, but that completely defeats the point of it being there... I've never used intellisense in the way that's being forced upon me. Can I switch this off? Or can an option be added to switch this off please?