ChatGPT解决这个技术问题 Extra ChatGPT

How do I turn off mouse block selection in IntelliJ?

For some reason, dragging the mouse cursor started doing block selects instead of the normal line select mode:

https://i.stack.imgur.com/70bmw.png

(Please ignore the fact that this image is from Visual Studio and not IntelliJ)

I tried pressing scroll-lock, pressing and releasing the alt/ctrl/shift keys, but still selecting doesn't revert to the normal "select full lines" mode. When I click and hold, then drag the mouse, I get a block (rectangle) selection.

Do you know how to undo this?

P.S. I'm running IntelliJ 9 on Ubuntu.

P.S. Holding SHIFT and pressing the up arrow button also does block select instead of normal multiline select.

That IntelliJ feature gave me cancer.

d
ddx001

"Edit" > "Column Selection Mode"


Much easier to find than messing with key combos on Mac vs Linux vs Windows.
Key combo didn't work for me, this was very clear and quick.
@sscarduzio I didn't know what it's called so I ended up deleting my entire Android Studio configuration to fix it and "reset it to normal" -_- this solution is less intrusive
is there a way to set this in preferences? I could not find it and it is super special annoying!
Use this answer and fix the problem once. Use Pylinux's answer and you can fix it forever: stackoverflow.com/a/38346300/1339923 @pferrel It may save your sanity, too.
T
Tomasz Nurkiewicz

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


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: seems inline html for keyboard keys doesn't work in comments Fail
maybe I needed lower case ctrl, nope guess not
P
Pylinux

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.


This is what I was after, and I'm so thankful to you! :)
A
Albert James Teddy

CMD + SHIFT + *

On a Macbook pro with UK keyboard


a
amatkivskiy

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