Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Eclipse ctrl-click

Tags:

eclipse

I'm very used to having Ctrl-click select the word below my cursor and in Eclipse the authors seem to think it's better to make it move to the definition. I disagree, but can't find how/where to fix this. Searching on the internet and on here as well leads to hundreds of people wanting Eclipse-style Ctrl-click everywhere - I want to get rid of it.

How?

like image 880
dascandy Avatar asked Dec 08 '10 12:12

dascandy


People also ask

How do I enable open declaration in Eclipse?

Right Click on the project -> Properties -> Project Facets -> Click on the Configuration Link -> Click on Apply Button -> Click on OK button.


2 Answers

Go to Window - Preferences - General - Editors - Text Editors - Hyperlinking preference page,

uncheck the option Open Declaration

like image 92
Kane Avatar answered Sep 28 '22 21:09

Kane


For the selection part:

I use AutoHotKey with the following script:

#IfWinActive ahk_class SWT_Window0 ^~LButton::Send !+{Up} 

The first line makes sure the macro is only run when eclipse (SpringSource Tool Suite in my case) is active. Use AHK's built-in 'Window Spy' to check the window class for different IDEs.

The second line sends Alt+Shift+Up (default select word shortcut) when you Ctrl+Click in the IDE

like image 26
Ronan Avatar answered Sep 28 '22 19:09

Ronan