Intellisense replaces my input with the default selected entry

[5.1.1720]
public class Foo
{
void Bar()
{
var reason = new System.ServiceModel.FaultReason(
new{CURSOR}
new System.ServiceModel.FaultReasonText("Test error", System.Globalization.CultureInfo.GetCultureInfo("en")),
new System.ServiceModel.FaultReasonText("Test Error", System.Globalization.CultureInfo.GetCultureInfo("en")))
}
}

When I in the above code hit "space", intellisense pops up and selects "FaultReasonText":
temp.jpg
But I want to write "new [] {", so I type the opening bracket [ but then it's replaced with the intellisense content:
System.ServiceModel.FaultReasonText[{CURSOR}]

Is this by design or a bug? (I only want it to complete when I e.g. press Tab, not when I'm typing symbols or characters...).
Thanks.

1 comment
Comment actions Permalink

Hello,

At the moment this behavior is by design: ReSharper completes selected item
when '[' is typed. As a workaround, you can hide IntelliSense (with Esc key)
before typing '['. But you're right, in this case ReSharper gest in the way
and we will try addressing this problem in one of the future releases.

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


public class Foo
{
void Bar()
{
var reason = new System.ServiceModel.FaultReason(
new{CURSOR}
new System.ServiceModel.FaultReasonText("Test error",
System.Globalization.CultureInfo.GetCultureInfo("en")),
new System.ServiceModel.FaultReasonText("Test Error",
System.Globalization.CultureInfo.GetCultureInfo("en")))
}
}
When I in the above code hit "space", intellisense pops up and selects
"FaultReasonText":
Image:temp.jpg
But I want to write "new [] {", so I type the opening bracket [ but
then it's replaced with the intellisense content:
System.ServiceModel.FaultReasonText[{CURSOR}]

Is this by design or a bug? (I only want it to complete when I e.g.
press Tab, not when I'm typing symbols or characters...).

Thanks.

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



0

Please sign in to leave a comment.