Intellisense / code completion help

First off, I just started using it today, and it's great! Really like this
product, would definetly pay for it.

I have 2 issues with code completion...not sure if either are a bug or not.

If I type in "System.Text.RegularExpression.RegEx.IsMatch" I get full
intellisense support from reshaper as I would expect. But the minute I
place my first opening parenthesis, the code gets rewritten as
"RegEx.IsMatch(" which is fine. Execpt that my parameter intellisense
never pops up. If I delete the ( and put it back, then my intellisense pops
up.


The other issue is with enumerations. I expect enumeration values to popup
automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values
"myEnumeration" can have. The only way I get that though, is by right
clicking --> Code --> Code Complete --> Smart at which point it properly
comes up.

Karl



11 comments
Comment actions Permalink

"Karl Seguin" <karlseguin@yahoo.com> wrote in message news:cafhgm$3n7$1@is.intellij.net...

First off, I just started using it today, and it's great! Really like this
product, would definetly pay for it.

I have 2 issues with code completion...not sure if either are a bug or not.

If I type in "System.Text.RegularExpression.RegEx.IsMatch" I get full
intellisense support from reshaper as I would expect. But the minute I
place my first opening parenthesis, the code gets rewritten as
"RegEx.IsMatch(" which is fine. Execpt that my parameter intellisense
never pops up. If I delete the ( and put it back, then my intellisense pops
up.



you can always invoke parameters list with ctrl+p shortcut.


The other issue is with enumerations. I expect enumeration values to popup
automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values
"myEnumeration" can have. The only way I get that though, is by right
clicking --> Code --> Code Complete --> Smart at which point it properly
comes up.


resharper site has a list of shortcuts, and short description of
available functionallity, it's useful to read and try it first.
In your case use ctrlshiftspace.
-j


0
Comment actions Permalink

The problem in both cases isn't that there isn't a shortcut..the problem is
why do I need a shortcut? If I need a shortcut to get intellisense up after
hitting a parantheses, then the functionality is, in my opinion, lacking.
If I get a parameter list after deleting said parantheses and putting it
back, then its inconsistent and likely a bug.

As for smart enumerations, if shortcuts is the only way it works, then I
guess I'm requesting that it be an option to always turn on. Again, I'd
expect the same thing when using bool's (again just like in VB.Net).

Karl

"jjooee" <jjooeeN_0_S_P_A_M@machak.com> wrote in message
news:cagbp0$um8$1@is.intellij.net...
"Karl Seguin" <karlseguin@yahoo.com> wrote in message
news:cafhgm$3n7$1@is.intellij.net...

First off, I just started using it today, and it's great! Really like

this

product, would definetly pay for it.

>

I have 2 issues with code completion...not sure if either are a bug or

not.
>

If I type in "System.Text.RegularExpression.RegEx.IsMatch" I get full
intellisense support from reshaper as I would expect. But the minute I
place my first opening parenthesis, the code gets rewritten as
"RegEx.IsMatch(" which is fine. Execpt that my parameter intellisense
never pops up. If I delete the ( and put it back, then my intellisense

pops

up.



you can always invoke parameters list with ctrl+p shortcut.


>

The other issue is with enumerations. I expect enumeration values to

popup

automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values
"myEnumeration" can have. The only way I get that though, is by right
clicking --> Code --> Code Complete --> Smart at which point it properly
comes up.


resharper site has a list of shortcuts, and short description of
available functionallity, it's useful to read and try it first.
In your case use ctrlshiftspace.
-j



0
Comment actions Permalink

Karl,

Thank you for trying ReSharper. Regarding your problems:

1) Missing parameter hint pop-up is definitely a bug. I've submitted it
to tracker (http://www.intellij.net/tracker/resharper/viewSCR?publicId=3221)
2) Regarding automatic suggestions - the question is when would you like
the lists to pop-up and of which kind?

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Karl Seguin" <karlseguin@yahoo.com> wrote in message
news:cahnj7$hhl$1@is.intellij.net...

The problem in both cases isn't that there isn't a shortcut..the problem

is

why do I need a shortcut? If I need a shortcut to get intellisense up

after

hitting a parantheses, then the functionality is, in my opinion, lacking.
If I get a parameter list after deleting said parantheses and putting it
back, then its inconsistent and likely a bug.

>

As for smart enumerations, if shortcuts is the only way it works, then I
guess I'm requesting that it be an option to always turn on. Again, I'd
expect the same thing when using bool's (again just like in VB.Net).

>

Karl

>

"jjooee" <jjooeeN_0_S_P_A_M@machak.com> wrote in message
news:cagbp0$um8$1@is.intellij.net...
"Karl Seguin" <karlseguin@yahoo.com> wrote in message
news:cafhgm$3n7$1@is.intellij.net...

First off, I just started using it today, and it's great! Really like

this

product, would definetly pay for it.

>

I have 2 issues with code completion...not sure if either are a bug or

not.
>

If I type in "System.Text.RegularExpression.RegEx.IsMatch" I get full
intellisense support from reshaper as I would expect. But the minute I
place my first opening parenthesis, the code gets rewritten as
"RegEx.IsMatch(" which is fine. Execpt that my parameter intellisense
never pops up. If I delete the ( and put it back, then my intellisense

pops

up.

>
>

you can always invoke parameters list with ctrl+p shortcut.

>
>

>

The other issue is with enumerations. I expect enumeration values to

popup

automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values
"myEnumeration" can have. The only way I get that though, is by right
clicking --> Code --> Code Complete --> Smart at which point it

properly

comes up.

>

resharper site has a list of shortcuts, and short description of
available functionallity, it's useful to read and try it first.
In your case use ctrlshiftspace.
-j

>
>
>


0
Comment actions Permalink

Karl,

I checked your case (with RegEx.IsMatch) and successfully got parameter
info hint. Note that it appears after slight delay (configured in options)
if you don't perform any actions during this time since a method has been
completed.

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Karl Seguin" <karlseguin@yahoo.com> wrote in message
news:cafhgm$3n7$1@is.intellij.net...

First off, I just started using it today, and it's great! Really like

this

product, would definetly pay for it.

>

I have 2 issues with code completion...not sure if either are a bug or

not.
>

If I type in "System.Text.RegularExpression.RegEx.IsMatch" I get full
intellisense support from reshaper as I would expect. But the minute I
place my first opening parenthesis, the code gets rewritten as
"RegEx.IsMatch(" which is fine. Execpt that my parameter intellisense
never pops up. If I delete the ( and put it back, then my intellisense

pops

up.

>
>

The other issue is with enumerations. I expect enumeration values to

popup

automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values
"myEnumeration" can have. The only way I get that though, is by right
clicking --> Code --> Code Complete --> Smart at which point it properly
comes up.

>

Karl

>
>
>


0
Comment actions Permalink

The problem in both cases isn't that there isn't a shortcut..the problem is
why do I need a shortcut? If I need a shortcut to get intellisense up after
hitting a parantheses, then the functionality is, in my opinion, lacking.
If I get a parameter list after deleting said parantheses and putting it
back, then its inconsistent and likely a bug.


hm..well, they show up with some delay for me after I type parentheses, using build 85 though..
as Oleg says could be a bug. Also be sure to turn off VS own parameter tooltips.

As for smart enumerations, if shortcuts is the only way it works, then I
guess I'm requesting that it be an option to always turn on. Again, I'd
expect the same thing when using bool's (again just like in VB.Net).


I think this could be useful in some cases e.g. (enum == enum), but in all other boolean cases
it definitely would be
1) difficult to implement
2) annoying
personal opinion, for sure...

0
Comment actions Permalink

automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values


But what if I'm going to type something like:

if (myEnumeration == anotherObject.GetEnumerationValue())
{
...
}

? In this case poping up suggestions matching 'myEnumeration' by type
immediately after '==' is not desired.

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"jjooee" <jjooeeN_0_S_P_A_M@machak.com> wrote in message
news:cagbp0$um8$1@is.intellij.net...
"Karl Seguin" <karlseguin@yahoo.com> wrote in message
news:cafhgm$3n7$1@is.intellij.net...

First off, I just started using it today, and it's great! Really like

this

product, would definetly pay for it.

>

I have 2 issues with code completion...not sure if either are a bug or

not.
>

If I type in "System.Text.RegularExpression.RegEx.IsMatch" I get full
intellisense support from reshaper as I would expect. But the minute I
place my first opening parenthesis, the code gets rewritten as
"RegEx.IsMatch(" which is fine. Execpt that my parameter intellisense
never pops up. If I delete the ( and put it back, then my intellisense

pops

up.



you can always invoke parameters list with ctrl+p shortcut.


>

The other issue is with enumerations. I expect enumeration values to

popup

automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values
"myEnumeration" can have. The only way I get that though, is by right
clicking --> Code --> Code Complete --> Smart at which point it properly
comes up.


resharper site has a list of shortcuts, and short description of
available functionallity, it's useful to read and try it first.
In your case use ctrlshiftspace.
-j



0
Comment actions Permalink

Humm....after doing it several times, I still think it happens (for me
atleast), but inconsistently. I've had it both work and not work today. I
also notice that sometimes I lose my intellisense and have to reselct Code
Complete --> Smart...this has happened at various times. I did notice that
when it doesn't work with RegEx.IsMatch if I pick Code Complete --> Smart
with my cursor in betwee then (), the popup that shows is incorrect. It has
the values of "HelpLink", "Message", "Source", "StackTrace", "String.Empty",
"ToString()"....I'm testing this inside a class which inherits from
System.Exception. Seems like the wrong intellisense for the current scope.

Again, this only happens when I type the full
System.Text.RegularExpression.Regex.IsMatch, this gets changed to
RegEx.IsMatch() and a using is added for System.Text.RegularExpression.

Karl

"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:cak5d6$98d$1@is.intellij.net...

Karl,

>

I checked your case (with RegEx.IsMatch) and successfully got

parameter

info hint. Note that it appears after slight delay (configured in options)
if you don't perform any actions during this time since a method has been
completed.

>

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Karl Seguin" <karlseguin@yahoo.com> wrote in message
news:cafhgm$3n7$1@is.intellij.net...

First off, I just started using it today, and it's great! Really like

this

product, would definetly pay for it.

>

I have 2 issues with code completion...not sure if either are a bug or

not.
>

If I type in "System.Text.RegularExpression.RegEx.IsMatch" I get full
intellisense support from reshaper as I would expect. But the minute I
place my first opening parenthesis, the code gets rewritten as
"RegEx.IsMatch(" which is fine. Execpt that my parameter intellisense
never pops up. If I delete the ( and put it back, then my intellisense

pops

up.

>
>

The other issue is with enumerations. I expect enumeration values to

popup

automatically as they do in VB. Except they don't seem to. If I type:
if (myEnumeration ==
I would expect intellisense to popup with all available values
"myEnumeration" can have. The only way I get that though, is by right
clicking --> Code --> Code Complete --> Smart at which point it

properly

comes up.

>

Karl

>
>
>

>
>


0
Comment actions Permalink

I realize that the goal of Reshaper isn't simply to make C# act more like
VB.Net, but as far as I'm concerned, the way VB.Net handles enumerations
with regards to intellisense is gold. I can't say for sure, but it seems
like whenever you do an equality or assignment operator or as a parameter to
a method with an enumerations, the values of the enumeration show up.
Perhaps its just me, but I use enumerations this way a lot more than
anything.

Sticking with my isMatch, it's pretty useful to do Regex.IsMatch("blah",
"blah", <-- and at that point have all the values of RegexOption show up
and properly quantify the value. Then when I type OR in VB.Net ( | in C#)
have it show up again and again. What else are you gonna be passing into
this function?

I guess the best thing I can suggest is to try it out in VB.Net...pass them
as parameters, create your own and put them in switch statements and if
statements, assign them different values and see if that's something you
like. I think it's great.

Karl

"jjooee" <jjooeeN_0_S_P_A_M@machak.com> wrote in message
news:cak8hl$u3k$1@is.intellij.net...

The problem in both cases isn't that there isn't a shortcut..the problem

is

why do I need a shortcut? If I need a shortcut to get intellisense up

after

hitting a parantheses, then the functionality is, in my opinion, lacking.
If I get a parameter list after deleting said parantheses and putting it
back, then its inconsistent and likely a bug.


hm..well, they show up with some delay for me after I type parentheses,
using build 85 though..
as Oleg says could be a bug. Also be sure to turn off VS own parameter
tooltips.

As for smart enumerations, if shortcuts is the only way it works, then I
guess I'm requesting that it be an option to always turn on. Again, I'd
expect the same thing when using bool's (again just like in VB.Net).


I think this could be useful in some cases e.g. (enum == enum), but in all
other boolean cases
it definitely would be
1) difficult to implement [if(someBool ==
oneOfThousandsObjects.OneOfManyBoolPropertiesOfWhichObject), what should
re#er suggest you at oneOfThousandsObjects?]
2) annoying
personal opinion, for sure...


0
Comment actions Permalink

Can Issue #3221 be re-examined, I added 2 attachments which show the bug in action. I imagine if your bug tracker is like ours, closed issues fall off the radar totally.

0
Comment actions Permalink

Sticking with my isMatch, it's pretty useful to do Regex.IsMatch("blah",
"blah", <-- and at that point have all the values of RegexOption show

up

and properly quantify the value. Then when I type OR in VB.Net ( | in C#)
have it show up again and again. What else are you gonna be passing into
this function?


You can pass some value of RegexOption type which can be fetched e.g. by
invoking come method or whatever. I agree that it's not very common case but
we cannot restrict the user in writing valid code!
Again note that the functionality which you want is easily acheived by
pressed Ctrl-Shift-Space. Isn't it ok for you?

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Karl Seguin" <karlseguin@yahoo.com> wrote in message
news:cakpbu$t6u$1@is.intellij.net...

I realize that the goal of Reshaper isn't simply to make C# act more like
VB.Net, but as far as I'm concerned, the way VB.Net handles enumerations
with regards to intellisense is gold. I can't say for sure, but it seems
like whenever you do an equality or assignment operator or as a parameter

to

a method with an enumerations, the values of the enumeration show up.
Perhaps its just me, but I use enumerations this way a lot more than
anything.

>

Sticking with my isMatch, it's pretty useful to do Regex.IsMatch("blah",
"blah", <-- and at that point have all the values of RegexOption show

up

and properly quantify the value. Then when I type OR in VB.Net ( | in C#)
have it show up again and again. What else are you gonna be passing into
this function?

>

I guess the best thing I can suggest is to try it out in VB.Net...pass

them

as parameters, create your own and put them in switch statements and if
statements, assign them different values and see if that's something you
like. I think it's great.

>

Karl

>

"jjooee" <jjooeeN_0_S_P_A_M@machak.com> wrote in message
news:cak8hl$u3k$1@is.intellij.net...

The problem in both cases isn't that there isn't a shortcut..the problem

is

why do I need a shortcut? If I need a shortcut to get intellisense up

after

hitting a parantheses, then the functionality is, in my opinion,

lacking.

If I get a parameter list after deleting said parantheses and putting it
back, then its inconsistent and likely a bug.

>

hm..well, they show up with some delay for me after I type parentheses,
using build 85 though..
as Oleg says could be a bug. Also be sure to turn off VS own parameter
tooltips.

>

As for smart enumerations, if shortcuts is the only way it works, then I
guess I'm requesting that it be an option to always turn on. Again, I'd
expect the same thing when using bool's (again just like in VB.Net).

>

I think this could be useful in some cases e.g. (enum == enum), but in all
other boolean cases
it definitely would be
1) difficult to implement [if(someBool ==
oneOfThousandsObjects.OneOfManyBoolPropertiesOfWhichObject), what should
re#er suggest you at oneOfThousandsObjects?]
2) annoying
personal opinion, for sure...

>
>


0
Comment actions Permalink

Karl,

Yes, we'll definitely work on this issue in nearest builds. Thank you for
information.

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"karl" <no_mail@jetbrains.com> wrote in message
news:1021307.1087303553077.JavaMail.itn@is.intellij.net...

Can Issue #3221 be re-examined, I added 2 attachments which show the bug

in action. I imagine if your bug tracker is like ours, closed issues fall
off the radar totally.


0

Please sign in to leave a comment.