IntelliJ Column Selection using Cursor Keys

后端 未结 10 556
遥遥无期
遥遥无期 2020-12-23 02:26

Is it possible to some how setup IntelliJ IDEA so that I can column select with the cursor keys similarly to how I might in Notepad++, Visual Studio, or FlashDevelop.

<
相关标签:
10条回答
  • 2020-12-23 03:20

    Multiline Caret (without mouse)

    Windows/Linux: CTRL + CTRL(Hold) + ↑ / ↓

    Mac: + (Hold) + ↑ / ↓

    ESC will end multiline mode.

    Change Multi-caret Hotkey

    To add a custom Keymap, CTRL+SHIFT+A, type keymap and click on the one with Settings as subtext. Search for Clone Caret Above and Clone Caret Below.

    I mapped mine to ALT+SHIFT+↑ / ↓.

    Bonus

    Try holding combinations of CTRL, SHIFT, and arrows for improved selection power.

    0 讨论(0)
  • 2020-12-23 03:24

    On a mac (with default keyboard mappings):

    8

    0 讨论(0)
  • 2020-12-23 03:25

    Most convenient way is to:

    • MAC: Hold Option+Shift and click with mouse.
    • Windows: Hold Alt and click with mouse.
    0 讨论(0)
  • 2020-12-23 03:29

    Go to the Settings | Keymap and set a shortcut for Clone Caret Above and for Clone Caret Below

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