2 Questions about comments on override, and Find Type messing around

Hello,

I didn't find it in options, i would like to know if there is a way to auto add comments when ReSharper completes an "override" method or when you click on "implement members".

I also would like to know if this is a known bug, having the Find Type window with cached letters of what you have searched before. I cant find when the TextBox doesnt clean itself, but i often have 1, or 2 or 6 char in that textbox and it's annoying.

Thanks

7 comments
Comment actions Permalink

Hello,

I didn't find it in options, i would like to know if there is a way to
auto add comments when ReSharper completes an "override" method


R# does not do any special completion of the “override” keyword. What you
see is Visual Studio support, most probably, and we have no control on what
it does with XML Doc comments.

R#'s way for overriding members is the Generate -> Override feature (try
Alt+Ins), with a grouped-by-class selection of members and options for XML
Docs.

or when you click on "implement members".


If you mean the quick fix (red bulb), then it would present you with an option
when implementing multiple members. With just one member, it would use the
most recent setting.

In VB.NET, generating XML Doc comments is not yet supported.

I also would like to know if this is a known bug, having the Find Type
window with cached letters of what you have searched before. I cant
find when the TextBox doesnt clean itself, but i often have 1, or 2 or
6 char in that textbox and it's annoying.


Would you please describe the scenario in detail? Is this the “R# -> Go To
-> Type” feature, or maybe rather “R# -> Go To -> Usage”? This does not look
like any known bug.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hi Serge, thanks for your quick answer.

Hello,

R#'s way for overriding members is the Generate -> Override feature (try
Alt+Ins), with a grouped-by-class selection of members and options for XML
Docs.


I didn't know about that shortcut, it's perfect, R# overriding method is better than VS' one.

If you mean the quick fix (red bulb), then it would present you with an option
when implementing multiple members. With just one member, it would use the
most recent setting.


Ok, it's working now (I have a fresh VS install and didnt find this panel yet) !

>> I also would like to know if this is a known bug, having the Find Type
>> window with cached letters of what you have searched before. I cant
>> find when the TextBox doesnt clean itself, but i often have 1, or 2 or
>> 6 char in that textbox and it's annoying.

>Would you please describe the scenario in detail? Is this the ?R# -> Go To
>-> Type? feature, or maybe rather ?R# -> Go To -> Usage?? This does not look
>like any known bug.

Ok. Both my collegue and I are experiencing this bug, (he has R# full version license and I got C# only license), I'm using v3.0.3 548.

I finally manage to reproduce "almost" when wanted the "bug" this morning (sometime i dont get it reproduced).
All you need is to go to "Go To Type", insert the name of a class you know very fast, without the feature displaying the list of possible types where to go to. You hit enter, you go to the first type matching your text, and then when you "Go To Type" again, there are parts or all the text in the textbox that you entered the first time.

How to (try and) reproduce :
Have a (relativly heavy) solution with multiple types ie:
Exploitation
ExploitationControlleur
ExploitationCreatorDialog
ExploitationJournal
Exploitation...

Hit Ctrl+n, insert "Exploitation + Enter" rather fast, you go to the class you want (first one), but then on next Ctrl+n, you still have "Exploitation" in the box.
If you wait for the list of choice to appear, then click on one of them, the text in the textbox disappears at next usage.
When you use the up and down arrows, sometimes the text dissapears at next usage, sometimes not.

I hope i have been understood

Charles

?

0
Comment actions Permalink

Hello,

I didn't know about that shortcut, it's perfect, R# overriding method
is better than VS' one.


R#'s ways for creating something basically goes thru the two feature groups:
Generate and CreateFromUsage. The latter helps with intention-driven programming
when you first write the usages of the proposed objects and methods, and
then they're created with their API matching the proposed calls. The two
feature groups cover the majority of automated creation cases.

>>> I also would like to know if this is a known bug, having the Find
>>> Type window with cached letters of what you have searched before. I
>>> cant find when the TextBox doesnt clean itself, but i often have 1,
>>> or 2 or 6 char in that textbox and it's annoying.


All you need is to go to "Go To Type", insert the name of a class you
know very fast, without the feature displaying the list of possible
types where to go to. You hit enter, you go to the first type matching
your text, and then when you "Go To Type" again, there are parts or
all the text in the textbox that you entered the first time.


Version 3 indeed has some code that can potentially render the behavior described
above. However, I cannot figure out a working repro sample based on the source
code.

Basically, the text is saved only in case when you switch between the GotoByName
family windows without completing or cancelling the original search, like
hitting the Go To File shortcut while having the Go To Type open. In this
case the text should persist. Probably, in your case there's a false alert
for such a switching.

As the switching is performed in response to keystrokes, could you please
check ones bound to the R#'s "GotoType", "GotoFile", "GotoSymbol" actions
(Tools -> Customize -> Keyboard), and the keys you're pressing while typing
in the type name, any clipboard shortcuts maybe. Are there any matches between
them? Maybe you have some system-wide typing assistant software installed?

PS As a possible hackaround, I've introduced initial selection into the quick
search edit box, so that even if some chars remain, they will be overtyped
with the first keystroke. That will get into the next 3.1 public or nightly
build.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Hello,

As the switching is performed in response to
keystrokes, could you please
check ones bound to the R#'s "GotoType", "GotoFile",
"GotoSymbol" actions
(Tools -> Customize -> Keyboard), and the keys you're
pressing while typing
in the type name, any clipboard shortcuts maybe. Are
there any matches between
them? Maybe you have some system-wide typing
assistant software installed?


I'm using default shortcuts, aka CtrlN, CtrlMajN, and CtrlAltMajN.
I have no such softwares installed.

Hum. I almost pressed PostMessage, then I tried to reproduce the bug once more, and finally i think i got it !
I told in the initial post that i cannot reproduce the bug everytime, and thanks to what you said, I understood that's the textbox gets bugged on every class containing "n"

Exemple :
Admin*
Exploitation*
*Component

so i hit Ctrl+N, then writes "admin", the lists appears or not (depending on how fast you hit enter), and then, next time i got "admi" in the box ! If I use up and down arrows on the list, then the textbox becomes empty at next goto type.

"exploitation" brings "exploitatio"
"facturation" bring "facturatio"

But "totonEscape" gives "toto" and "foobarnEscape" gives "foobar"
I dont think I have a shortcut on "n", but I will check. I hope it helps.

And if it doesnt, thanks for the hackaround :)

Edit : i'm using French VS2005 + French WinXP/settings
---
Charles

Message was edited by:
Charles Coustenoble

0
Comment actions Permalink

Hello,

I told in the initial post that i cannot reproduce the bug everytime,
and thanks to what you said, I understood that's the textbox gets
bugged on every class containing "n" !


Great Frankly speaking, we haven't been able to repro it here yet. But that
gives us a clue anyway, and I've filed a report on the issue.

http://www.jetbrains.net/jira/browse/RSRP-53117

What's your system locale and keyboard layout, by the way?


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

All is French : keyboard, layout, locale, windows, visual studio

0
Comment actions Permalink

Hello,

All is French : keyboard, layout, locale, windows, visual studio


Thanks, we'll see if we can do something.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.