Features
Tips & Tricks
Tutorials
Feature Spotlight: Multiple Selections in PyCharm
Today I’d like to highlight one of the most top voted features that appeared in PyCharm 3.4 some time ago – Multiple Selections. Since then a lot of people have been using it and enjoying the increased productivity while editing.
With this feature you can:
- Set multiple cursors in the editor area: Alt + Mouse Click (Option + Mouse Click for Mac OS X). Note that on some systems you also have to use Shift with the shortcuts mentioned.
- Select/unselect the next occurrence: Alt + J / Shift + Alt + J (Ctrl + G / Shift + Ctrl +G for Mac OS X)
- Select all occurrences: Shift + Ctrl + Alt + J (Ctrl + Cmd + G for Mac OS X)
- Clone caret above/below (the shortcuts are not mapped yet)
- Remove all selections: Esc
You can redefine these shortcuts in Settings -> Keymap -> Editor Actions if necessary.
Multiple selections work nicely together with other PyCharm features like Code completion, Select word at caret, Join lines, Copy/paste, and the others. This feature also works with all languages supported by PyCharm such as Python, HTML, JavaScript, CSS and more.
Hope you’ll enjoy this handy feature!
-Dmitry
Prev post Meet the PyCharm Team in Berlin, Germany at EuroPython 2014Feature Spotlight: Deployment with PyCharm Next post