Can the modifier key for declaration navigation be configured?

When you hold down Ctrl and point at a class/method/variable it turns into a link that takes you to where it is defined. The problem is that you often hold down Ctrl when you don't want it to do that (e.g. when you are about to cut, copy or paste). Is it possible to change the "navigate to" modifier key to Alt. If so: how? If not: make it possible. ;)

5 comments

I've noticed this too. I use the mouse and keyboard to do copy & paste
of variable or method names sometimes. So I'll double-click on a
variable to select, press Ctrl-C to copy, double-click on another
variable to select, and press Ctrl-V to paste over the selection. While
doing this I get a lot of flashing of the underlines and popup labels as
I move the mouse around and press and release the Control key,
especially when I'm doing it quickly and repetitively.

Hmm... Methinks I need a Replace Usages refactoring that doesn't rename
the thing whose usages I'm replacing...

http://www.intellij.net/tracker/idea/viewSCR?publicId=4059

Marcus Sundman wrote:

When you hold down Ctrl and point at a class/method/variable it turns into a link that takes you to where it is defined. The problem is that you often hold down Ctrl when you don't want it to do that (e.g. when you are about to cut, copy or paste). Is it possible to change the "navigate to" modifier key to Alt. If so: how? If not: make it possible. ;)


--
Gordon Tyler
Software Developer, R&D
Sitraka (now part of Quest Software)
"Performance is Mission Critical"

0

Hi,

You can change it in Keymap customization.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0

I did look there, but didn't find it because I looked for "Ctrl" instead of "Ctrl-LMB". The reason why I looked for only "Ctrl" was that the methods/variables are highlighted even though you don't press the mouse button, so it never occurred to me that the LMB could be part of the trigger. Now after changing the shortcut from "Ctrl-LMB" to "Alt-LMB" I realize that the LMB is indeed not part of the trigger for the highlight, but only for the actual navigation to the declaration. Holding down Alt while pointing at a variable doesn't do anything (clicking the variable goes to its declaration) whereas holding down Ctrl instead still highlights and shows the popup (clicking the variable doesn't do anything). Not good.

0

Hmm... Methinks I need a Replace Usages refactoring that doesn't rename
the thing whose usages I'm replacing...

>

http://www.intellij.net/tracker/idea/viewSCR?publicId=4059

>

I think you can do this with the "Tools -> Migrate", but it sure would be a
lot more convenient to have a simple refactor usage (i.e. change all
references from "this" to "that"... without touching either "this" or
"that").



0

File this as a bug report?

"Marcus Sundman" <jiveadmin@jetbrains.com> wrote in message
news:601544.1043942317714.JavaMail.jrun@is.intellij.net...

I did look there, but didn't find it because I looked for "Ctrl" instead

of "Ctrl-LMB". The reason why I looked for only "Ctrl" was that the
methods/variables are highlighted even though you don't press the mouse
button, so it never occurred to me that the LMB could be part of the
trigger. Now after changing the shortcut from "Ctrl-LMB" to "Alt-LMB" I
realize that the LMB is indeed not part of the trigger for the
highlight, but only for the actual navigation to the declaration. Holding
down Alt while pointing at a variable doesn't do anything (clicking the
variable goes to its declaration) whereas holding down Ctrl instead still
highlights and shows the popup (clicking the variable doesn't do anything).
Not good.


0

Please sign in to leave a comment.