Reputation: 15559
In Visual Studio, we can hold down the Alt
key and select multiple lines together...
e.g: here I am changing the indentation of 3 lines together:
How can I do the same in PyCharm?
Upvotes: 0
Views: 70
Reputation: 2150
If you want to be able to click and drag, then change your key bindings this way:
In Preferences > Keymap > Editor Actions set
Create Rectangular Selection on Mouse Drag
to ⌥ Click
(clears old cursors)
Note that it should be Create instead of Add, and if you like you could set
Add Rectangular Selection on Mouse Drag
to ⌥ ⇧ Click
(keeps old cursors)
Upvotes: 0
Reputation: 1068
There is a documentation on their website you can find that here
https://blog.jetbrains.com/pycharm/2014/09/feature-spotlight-multiple-selections-in-pycharm/
If you are using a windows machine, it may work with alt or shift
In case of MAC it works with option
key
Upvotes: 1