Intellisense removes existing method signature when invoked

Hi there,

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

Plugins: none
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?

2 comments
Comment actions Permalink

Hello Chris,

I'm afraid I wasn't able to reproduce this behavior by following the same
steps. Could you please attach a small screencast demonstrating what happens?
Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi there,

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
Plugins: none
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:

 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:

 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?

---
Original message URL:
http://devnet.jetbrains.net/message/5406019#5406019



0
Comment actions Permalink

I've sent an email to support@jetbrains.com as I couldn't access the forum this morning.

0

Please sign in to leave a comment.