IntelliJ Column Selection using Cursor Keys

后端 未结 10 555
遥遥无期
遥遥无期 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:10

    For me on Mac:

    Press once 'option' key, release it, and press and hold it again. Now navigate with cursor to select desired code. Press 'Esc' to exit column mode! :)

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

    For Mac cmd+shift+* didn't work for me. I changed the keymap to something else and now it works seamlessly.

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

    In Windows or Linux I press two times Ctrl

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

    I think @Meo's answer is the most correct, but if your hand happens to be on the mouse, you can also accomplish this with Ctrl+Alt+Shift+Left Mouse Button Click. Or look for the Add Rectangular Selection on Mouse Drag in the keymap settings.

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

    It is also possible to select holding middle mouse key.

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

    You can do column editing using the Edit | Column Selection Mode.

    The shortcut to turn it on/off is Alt+Shift+Insert. You navigate with arrow keys to select blocks of text.

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