Sublime Text has this functionality where you can select text and start editing each line with a (multiple) cursor:
Is there PyCharm equivalent?
To select ranges as multiple rectangular selections, Ctrl+Alt+Shift+Click and drag the mouse over the desired parts of code. As a result, you will have multiple selection ranges in each affected document line.
What are the keyboard shortcuts for creating multiple cursors in VS Code? Just hold down the Alt button and start clicking in different places. That's it. CMD+Alt+Down arrow is what you want.
Another option: with text selected, toggle column selection mode:
The default shortcut to toggle the mode is:
alt
-shift
-insert
cmd
-shift
-(numpad) *
(or Edit
→Column Selection Mode
)
It's an inconvenient shortcut for Mac, as most laptops have no numpad. I remapped it to cmd
-shift
-8
.
Column selection mode actually has other purposes too: it changes the default behavour when selecting text with the keyboard and mouse. Toggle it off again to return to normal selection behaviour.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With