Vertical/Column text select in PyCharm?

PycharmKeyboard Shortcuts

Pycharm Problem Overview


Is it possible to select text vertically/in a column in PyCharm? You can do it in Visual Studio and Notepad++ by holding down alt+arrow keys.

The documentation describes how to do it with the mouse, but there's no mention of keyboard options.

http://www.jetbrains.com/pycharm/webhelp/selecting-text-in-the-editor.html#d306531e464

Pycharm Solutions


Solution 1 - Pycharm

Press Ctrl+Shift+A (Find Action feature) and type column. The first result is Column Selection Mode Alt+Shift+Insert. After that, select text with keyboard (by holding Shift)

Solution 2 - Pycharm

First press ctrl (press and release), then press ctrl+arrows to do the vertical selection.

Solution 3 - Pycharm

In Mac, Hold option + Shift - and use mouse to select the text vertically

Solution 4 - Pycharm

In the free version of Pycharm this is called Column Selection Mode and it's enabled pressing Shift + Command + 8

Column Selection Mode

Edit: Noticed Ozgur Ozturk beat me to this in his comment and as he points out this combo is for Macs only

Solution 5 - Pycharm

Go to Settings > Keymap > Editor Actions > Add Rectangular Selection on Mouse Drag and add Alt + Button1 Click as a new action.

This will allow you to create rectangular selections across multiple rows and columns like you know it from Notepad++.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDharmaTurtleView Question on Stackoverflow
Solution 1 - PycharmPiotr DobrogostView Answer on Stackoverflow
Solution 2 - PycharmÉtienneView Answer on Stackoverflow
Solution 3 - PycharmAnandkumarView Answer on Stackoverflow
Solution 4 - PycharmsaranicoleView Answer on Stackoverflow
Solution 5 - PycharmZciurusView Answer on Stackoverflow