PyCharm 2019 - column selection in the editor

Answered

Hi,

column selection used to behave like in e.g. Win Notepad++: depress ALT, drag a left mouse pressed and select a rectangular region instead of whole lines of text.
For some weird reason, this seems to be removed in 2019? That is an unintentional mistake, right? I found a shortcut that switches to the column selection permanently, AltShINSERT, but that's so silly... when this ALT depressed worked so nicely...

Pretty please, could You guys return this original behaviour back? Again, depress ALT, depress Lmouse, drag a mouse, release mouse, release ALT >>> column of a text selected.

Thanks in advance,

Stepan

10 comments
Comment actions Permalink

Hi Stepan,

It looks like a bug. I filed an issue about it https://youtrack.jetbrains.com/issue/PY-35083, please upvote and follow for updates.

2
Comment actions Permalink

OK, according to JetBrains support, default shortcut has been changed to ALT+SH+drag instead of original ALT+drag.
Also - Settings | Editor Actions | Create Rectangular Selection on Mouse Drag

5
Comment actions Permalink

what was the need for changing the shortcut? It is very frustrating when some old shortcuts don't work on newer version

6
Comment actions Permalink

This is a bummer. :( 

2
Comment actions Permalink

This looks like change for the sake of change.  Never a good policy...  I would love to hear the rationale behind this one.

0
Comment actions Permalink

This just caught me out today. The weird thing is, Alt-Drag works fine in Rider, just not in PyCharm. This inconsistency is very confusing!

0
Comment actions Permalink

I had this issue and fixed it by adding a mouse shortcut for column select mapped to Alt + Button 1 Click. It seems to be a tiny bit finicky when you first enable it but has worked great for me so far. It is a toggle unlike most column selectors but it's the best I could find.

0
Comment actions Permalink

Maybe because on a lot of linux desktops Alt-Drag will drag the window by default.

0
Comment actions Permalink

It can be customised to the old shortcut: Preferences > Keymap > Editor Actions > Create Rectangular Selection on Mouse Drag > right click > Add Mouse Shortcut

0
Comment actions Permalink

On PyCharm Pro 2020.2, the middle mouse button is configured to do column select.

0

Please sign in to leave a comment.