[219] Parameter info issues.

Hi, there are several issues with showing parameter info:

1. Parameter info is not showed automatically after typing a opening
parenthesis after a method name.

2. Parameter info can only be showed with Ctrl + P when both parentheses are
typed, not when only the opening parenthesis has been typed.

Regards,

patrick


9 comments
Comment actions Permalink

Patrick,

1. Parameter info is not showed automatically after typing a opening
parenthesis after a method name.


Is option ReSharper->Options->Editor->Autopopup parameter info turned on?
And how long is delay?

2. Parameter info can only be showed with Ctrl + P when both parentheses
are typed, not when only the opening parenthesis has been typed.

Can You provide us with the context?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink


"Sergey V. Coox (JetBrains)" <qx@intellij.com> wrote in message
news:dthb7n$d9t$1@is.intellij.net...

Is option ReSharper->Options->Editor->Autopopup parameter info turned on?
And how long is delay?


Yes, it is turned on with a delay of 0.

>> 2. Parameter info can only be showed with Ctrl + P when both parentheses
>> are typed, not when only the opening parenthesis has been typed.

Can You provide us with the context?


What do you mean by context?
Example:
I have method foo(int i)
I type "foo(". No parameter info appears, so I press Ctrl + P. Still no
parameter info appears.
I type the closing parenthesis ("foo()"), now I press Ctrl + P and the
parameter info correctly appears.

Some extra info: As soon as I turned on option CodeCompletion > Behaviour >
Add both parentheses, I got Autopopup working again. I before had turned on
option Do not add parentheses. So it definitely seems to be a bug with not
having both parentheses.

Patrick


0
Comment actions Permalink

It sounds like you don't have auto-insert of closing parens/braces turned
on??

"Patrick" <patrick@nospam.com> wrote in message
news:dthc7k$nn6$1@is.intellij.net...
>

"Sergey V. Coox (JetBrains)" <qx@intellij.com> wrote in message
news:dthb7n$d9t$1@is.intellij.net...

>> Is option ReSharper->Options->Editor->Autopopup parameter info turned on?
>> And how long is delay?
>

Yes, it is turned on with a delay of 0.

>
>>> 2. Parameter info can only be showed with Ctrl + P when both parentheses
>>> are typed, not when only the opening parenthesis has been typed.
>> Can You provide us with the context?
>

What do you mean by context?
Example:
I have method foo(int i)
I type "foo(". No parameter info appears, so I press Ctrl + P. Still no
parameter info appears.
I type the closing parenthesis ("foo()"), now I press Ctrl + P and the
parameter info correctly appears.

>

Some extra info: As soon as I turned on option CodeCompletion > Behaviour
> Add both parentheses, I got Autopopup working again. I before had turned
on option Do not add parentheses. So it definitely seems to be a bug with
not having both parentheses.

>

Patrick



0
Comment actions Permalink

Hi Paul,

It sounds like you don't have auto-insert of closing parens/braces turned
on??


That's correct. But that should not interfere with showing parameter info.
As soon as I manually type the opening parenthesis I expect to get parameter
info just like in VS2005. Now I am forced into enabling auto-insert because
parameter info is only shown when both parentheses are present.
And frankly, I hate the auto-insertion of closing braces.


0
Comment actions Permalink

Give yourself some time to get used to it. You know you can just type over
the closing paren, and it won't insert another one, right? It's nice to
have your code syntactically "as correct as possible" at all times, and it
makes messing up nested parens much more difficult. And once 2.x comes out
with the "complete-statement/smart-enter" feature, you'll be glad you have
this feature and it'll reduce you're typing a lot.

But I agree it takes some getting used to. But when we moved from VS2003 to
VS2005 and the current EAP builds of Reshaper didn't work, I realized how
much I missed this feature. I found it very annoying that Visual Studio
made me type all thsoe closing parens and quotes myself :)

So again, while this is a legitimate bug that they need to fix, give
yourself a chance to get used to this feature and you may come to appreciate
it. After all, it's a work-around until they fix the problem.

"Patrick" <patrick@nospam.com> wrote in message
news:dtjs4e$f36$1@is.intellij.net...

Hi Paul,

>
>> It sounds like you don't have auto-insert of closing parens/braces turned
>> on??
>

That's correct. But that should not interfere with showing parameter info.
As soon as I manually type the opening parenthesis I expect to get
parameter info just like in VS2005. Now I am forced into enabling
auto-insert because parameter info is only shown when both parentheses are
present.
And frankly, I hate the auto-insertion of closing braces.

>



0
Comment actions Permalink

My main annoyance with this option is to encapsulate existing code with
braces.
E.g., to embed a statement in an if-clause with braces, I have to type the
opening brace, delete the automatic closing brace as it appears before the
statement,
and then type the closing brace after the statement. As an alternative I
could use CtrlAltJ, but both options require a lot of typing just to get
two braces.

So I have been working with automatic bracing for quite some time, but when
I was forced to work without R# when I switched to VS2005, I noticed how
reliefed I was not having those closing braces. And as soon as I installed
my first EAP, I switched the option off. But hey, maybe I get convinced
otherwise now I am forced to use it.

Patrick

"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:dtkpoh$st6$1@is.intellij.net...

Give yourself some time to get used to it. You know you can just type
over the closing paren, and it won't insert another one, right? It's nice
to have your code syntactically "as correct as possible" at all times, and
it makes messing up nested parens much more difficult. And once 2.x comes
out with the "complete-statement/smart-enter" feature, you'll be glad you
have this feature and it'll reduce you're typing a lot.

>

But I agree it takes some getting used to. But when we moved from VS2003
to VS2005 and the current EAP builds of Reshaper didn't work, I realized
how much I missed this feature. I found it very annoying that Visual
Studio made me type all thsoe closing parens and quotes myself :)

>

So again, while this is a legitimate bug that they need to fix, give
yourself a chance to get used to this feature and you may come to
appreciate it. After all, it's a work-around until they fix the problem.

>

"Patrick" <patrick@nospam.com> wrote in message
news:dtjs4e$f36$1@is.intellij.net...

>> Hi Paul,
>>
>>> It sounds like you don't have auto-insert of closing parens/braces
>>> turned on??
>>
>> That's correct. But that should not interfere with showing parameter
>> info. As soon as I manually type the opening parenthesis I expect to get
>> parameter info just like in VS2005. Now I am forced into enabling
>> auto-insert because parameter info is only shown when both parentheses
>> are present.
>> And frankly, I hate the auto-insertion of closing braces.
>>
>>
>



0
Comment actions Permalink

Yeah, for adding braces around I just hit Ctrl-W then Ctrl-Alt-J and braces.
It's so automatic any more I don't even notice. But since I don't do that
so very often, I find the adding of closing parens/braces/brackets actually
is a benefit on the whole... there are more times when I appreciate it than
when I'm annoyed with it.

"Patrick" <patrick@nospam.com> wrote in message
news:dtmg6i$2mu$1@is.intellij.net...

My main annoyance with this option is to encapsulate existing code with
braces.
E.g., to embed a statement in an if-clause with braces, I have to type the
opening brace, delete the automatic closing brace as it appears before the
statement,
and then type the closing brace after the statement. As an alternative I
could use CtrlAltJ, but both options require a lot of typing just to get
two braces.

>

So I have been working with automatic bracing for quite some time, but
when I was forced to work without R# when I switched to VS2005, I noticed
how reliefed I was not having those closing braces. And as soon as I
installed my first EAP, I switched the option off. But hey, maybe I get
convinced otherwise now I am forced to use it.

>

Patrick

>

"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:dtkpoh$st6$1@is.intellij.net...

>> Give yourself some time to get used to it. You know you can just type
>> over the closing paren, and it won't insert another one, right? It's
>> nice to have your code syntactically "as correct as possible" at all
>> times, and it makes messing up nested parens much more difficult. And
>> once 2.x comes out with the "complete-statement/smart-enter" feature,
>> you'll be glad you have this feature and it'll reduce you're typing a
>> lot.
>>
>> But I agree it takes some getting used to. But when we moved from VS2003
>> to VS2005 and the current EAP builds of Reshaper didn't work, I realized
>> how much I missed this feature. I found it very annoying that Visual
>> Studio made me type all thsoe closing parens and quotes myself :)
>>
>> So again, while this is a legitimate bug that they need to fix, give
>> yourself a chance to get used to this feature and you may come to
>> appreciate it. After all, it's a work-around until they fix the problem.
>>
>> "Patrick" <patrick@nospam.com> wrote in message
>> news:dtjs4e$f36$1@is.intellij.net...
>>> Hi Paul,
>>>
>>>> It sounds like you don't have auto-insert of closing parens/braces
>>>> turned on??
>>>
>>> That's correct. But that should not interfere with showing parameter
>>> info. As soon as I manually type the opening parenthesis I expect to get
>>> parameter info just like in VS2005. Now I am forced into enabling
>>> auto-insert because parameter info is only shown when both parentheses
>>> are present.
>>> And frankly, I hate the auto-insertion of closing braces.
>>>
>>>
>>
>>
>



0
Comment actions Permalink

1. Parameter info is not showed automatically after typing a opening
parenthesis after a method name.


Thanks for reporting this, we'll fix it shortly.


2. Parameter info can only be showed with Ctrl + P when both
parentheses are typed, not when only the opening parenthesis has been
typed.


I could not reproduce it. Could you provide a code example?

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

Hi, there are several issues with showing parameter info:

1. Parameter info is not showed automatically after typing a opening
parenthesis after a method name.

2. Parameter info can only be showed with Ctrl + P when both
parentheses are typed, not when only the opening parenthesis has been
typed.

Regards,

patrick



0
Comment actions Permalink

Hi Valentin,

"Valentin Kipiatkov (JetBrains)" <valentin@jetbrains.com> wrote in message
news:3fdb29a6a9cc08c80921abff87ee@news.intellij.net...
>> 2. Parameter info can only be showed with Ctrl + P when both
>> parentheses are typed, not when only the opening parenthesis has been
>> typed.
>

I could not reproduce it. Could you provide a code example?

>

I cannot reproduce it either, except for the following case:

I have the following code:
Assert.AreEqual(1,1, "Just some test.");

I copy the statement and delete the parameters like this:
Assert.AreEqual(;

I cannot do Ctrl+P when I do not remove the semicolon like:
Assert.AreEqual(

However, this was not my initial problem, but as I said I can not reproduce
it.

Regards,

Patrick



0

Please sign in to leave a comment.