Disable Eclipse ctrl-click

前端 未结 3 1509
不思量自难忘°
不思量自难忘° 2020-12-23 21:41

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 dis

相关标签:
3条回答
  • 2020-12-23 21:48

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

    uncheck the option Open Declaration

    0 讨论(0)
  • 2020-12-23 21:59

    Close Eclipse.

    Delete: /path/to/workplace/.metadata/.plugins/org.eclipse.jdt.core

    Open eclipse and let it rebuild its indexes. Job done.

    0 讨论(0)
  • 2020-12-23 22:09

    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

    0 讨论(0)
提交回复
热议问题