eclipse ctrl+k equivalent shortcut in IntelliJ

后端 未结 9 2079
挽巷
挽巷 2021-02-01 13:49

In Eclipse, if the cursor is over a word and you press Ctrl+K you will jump to the next occurrence of that word in the file.

Is there a si

9条回答
  •  忘了有多久
    2021-02-01 14:08

    You can do it using macros:

    • Edit -> Macros -> Start Macro Recording
    • Edit -> Find -> Find Word at Caret
    • Edit -> Find -> Find Next/ Move to Next Occurrence
    • Edit -> Macros -> Stop Macro Recording
    • Give some name for the macro, e.g. "simulate Eclipse Ctrl+K"
    • File -> Settings -> Keymap -> Find the macro "simulate eclipse Ctrl+K" -> bind hotkey Ctrl+K

    The same can be done for the Ctrl+Shift+K (use Find Previous/ Move to Previous Occurrence).

提交回复
热议问题