如何关闭 IntelliJ 中的鼠标块选择?

由于某种原因,拖动鼠标光标开始做块选择,而不是正常的行选择模式:

enter image description here

(请忽略此图像来自 VisualStudio 而非 IntelliJ 的事实)

我尝试按下滚动锁定,按下并释放 alt/ctrl/shift 键,但仍然选择不恢复到正常的“选择全行”模式。当我点击并保持,然后拖动鼠标,我得到一个块(矩形)选择。

你知道怎么撤销吗?

另外,我在 Ubuntu 上运行 IntelliJ9。

按住 SHIFT 键并按向上箭头按钮也可以代替正常的多行选择来进行阻塞选择。

44186 次浏览

Use Alt + Shift + Insert to switch between Column and Insert selection mode.


Copying comment from brent.payne below:

If you are on ubuntu running on a bootcamp mac (macbook pro here) then the key stroke is Alt + Shift + Fn + Enter. Fn + Enter = Ins since no Ins key exists on the macbook pro

"Edit" > "Column Selection Mode"

First you do

"Edit" > "Column Selection Mode"

THEN you go into

Settings -> Keymap

and search for Column Selection Mode, then you right click it and remove the key bindings so that it doesn't come on again.

CMD + SHIFT + *

On a Macbook pro with UK keyboard

Or if you are on MacOS: simply press ⇧⌘A in Editor, search for Column Section Mode and just turn it OFF.