PyCharm 2019 - column selection in the editor

已回答

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

6

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

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

7

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

8

This is a bummer. :( 

2

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

0

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

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

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

0

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

0

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

1

Thanks all, very helpful. Please note that this is also possible using mouse button 2

0

请先登录再写评论。