Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA column selection with Alt key

In Intellij IDEA is there a way to enable column selection mode by holding down Alt, like in other IDEs (for example Visual Studio or Notepad++)?

Currently when pressing Alt IntelliJ uses the multicursor feature, which always results in me having an aditional cursor somewhere where I don't want it.

example image multicursor

The middle mouse button (hold and drag) does exactly what I want, I just wished I could remap it to the Alt key

like image 619
Mikescher Avatar asked Jan 27 '17 22:01

Mikescher


1 Answers

In Preferences > Keymap > Editor Actions set

Create Rectangular Selection on Mouse Drag to ⌥ Click (clears old cursors)

Note that it should be Create instead of Add, and if you like you could set

Add Rectangular Selection on Mouse Drag to ⌥ ⇧ Click (keeps old cursors)

like image 104
elgehelge Avatar answered Oct 29 '22 06:10

elgehelge