Type Name completion

Hello,

I am wondering why ctrlaltspace is not working in a class or interface definition...

After all, I also need to supply types there... Example code to reproduce:

interface Ibar{}

interface Ifinal:XXX{}

class final:XXX{}

I would expect the Type name completion to be available at the XXX spots...

6 comments
Comment actions Permalink

Hello Rdrunner,

It does work for me. Note, that type completion works only when you have
a prefix typed. So if you have

interface IFinal : I

and use Type Completion, it should give you all types starting with "I".

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> Hello,
IR>
IR> I am wondering why ctrlaltspace is not working in a class or
IR> interface definition...
IR>
IR> After all, I also need to supply types there... Example code to
IR> reproduce:
IR>
IR> interface Ibar{}
IR>
IR> interface Ifinal:XXX{}
IR>
IR> class final:XXX{}
IR>
IR> I would expect the Type name completion to be available at the XXX
IR> spots...
IR>


0
Comment actions Permalink

I am explicitly refering to ctrlaltspace. (So all known Namespaces will be searched, and a missing using statement will be added in my class. The plain ctrl + space seems to work correctly though.

Message was edited by:
Rdrunner

0
Comment actions Permalink

Hello Rdrunner,

Me too. Type Completion (ctrl-alt-space in IDEA/ReSharper 2.x key scheme)
works this way. It requires prefix. Otherwise the list will be way too large.
So, does it work in the places you want it to work, if you type the first
letter of the type you want?

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> I am explicitely refering to ctrlaltspace. (So all known
IR> Namespaces will be searched, and a missing using statement will be
IR> added in my class. The plain ctrl + space seems to work correctly
IR> though.
IR>


0
Comment actions Permalink

Hmmm I cannot get CtrlAltSpace to work in VS2005 with the VS Keysettings.

I verified that the resharper command "CompleteCodeSmart" is bound to ctrlaltspace. I also tried to Prefix the Class I wanted without any Success.

0
Comment actions Permalink

Hello Rdrunner,

Keybindings are different in Visual Studio scheme for ReSharper. Ctrl-Shift-Space
is occupied by Edit.ParameterInfo, and thus CompleteCodeSmart cannot be bound
to it. Instead, it is bound to Ctrl-Alt-Space. What you seem to need is Alt-Shift-Space,
which is default shortcut for CompleteCodeTypeName in VS scheme.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> Hmmm I cannot get CtrlAltSpace to work in VS2005 with the VS
IR> Keysettings.
IR>
IR> I verified that the resharper command "CompleteCodeSmart" is bound
IR> to ctrlaltspace. I also tried to Prefix the Class I wanted without
IR> any Success.
IR>


0
Comment actions Permalink

Perfect...

It works now :D

0

Please sign in to leave a comment.