Disable Eclipse ctrl-click
I'm very used to having Ctrl-click select the word below my cursor and in Ecli开发者_运维问答pse 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?
Go to Window - Preferences - General - Editors - Text Editors - Hyperlinking preference page,
uncheck the option Open Declaration
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
Close Eclipse.
Delete: /path/to/workplace/.metadata/.plugins/org.eclipse.jdt.core
Open eclipse and let it rebuild its indexes. Job done.
精彩评论