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
请先登录再写评论。
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.
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
what was the need for changing the shortcut? It is very frustrating when some old shortcuts don't work on newer version
This is a bummer. :(
This looks like change for the sake of change. Never a good policy... I would love to hear the rationale behind this one.
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!
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.
Maybe because on a lot of linux desktops Alt-Drag will drag the window by default.
It can be customised to the old shortcut: Preferences > Keymap > Editor Actions > Create Rectangular Selection on Mouse Drag > right click > Add Mouse Shortcut
On PyCharm Pro 2020.2, the middle mouse button is configured to do column select.
Thanks all, very helpful. Please note that this is also possible using mouse button 2