Multiple Cursors & Selections
- Place multiple cursors anywhere: Option–Click (Mac) or ALT–Click (Windows) to position cursors exactly where you need them for simultaneous editing
- Create multiple selections (discontinuous): Hold Option (Mac) or ALT (Windows) while dragging to select separate text blocks that aren't connected—perfect for editing similar elements scattered throughout your code
- Select text across multiple lines in one action: Hold Option–Shift (Mac) or ALT–Shift (Windows) while dragging to create a single rectangular selection that spans multiple lines, ideal for editing columnar data or aligned code
- Generate vertical multi-line cursors: Hold Cmd–Option (Mac) or CTRL–ALT (Windows) and press the Up or Down Arrow keys to create cursors on consecutive lines—invaluable for repetitive edits like adding prefixes or modifying lists
- Edit everywhere simultaneously: With multiple cursors or selections active, any action you take—deleting, typing, pasting, or formatting—applies to all positions at once, dramatically accelerating your workflow. Press Escape (esc) to return to single-cursor mode when finished
Quick Start Guide
Place Multiple Cursors
Hold Option key on Mac or ALT key on Windows and click at each location where you want to place a cursor. You'll see multiple blinking cursors appear.
Make Your Edits
Type, delete, paste, or perform any editing action. All cursors will respond simultaneously, making identical changes at each location.
Return to Single Cursor
Press the Escape key to return to a single cursor and normal editing mode when you're finished with multiple cursor operations.
Mac vs Windows Shortcuts
| Feature | Mac | Windows |
|---|---|---|
| Multiple Cursors | Option + Click | ALT + Click |
| Discontinuous Selection | Option + Drag | ALT + Drag |
| Multi-line Selection | Option + Shift + Drag | ALT + Shift + Drag |
| Vertical Cursors | Cmd + Option + Arrow | CTRL + ALT + Arrow |
Multiple Cursor Benefits and Considerations
Multiple Cursor Mastery Checklist
Start with simple scenarios to build confidence with the basic technique
Learn to select multiple separate areas for batch editing operations
Perfect for editing structured data or making vertical alignments
Advanced technique for complex refactoring and code transformations
Essential safety net when multi-cursor operations become unwieldy
Start with simple multiple cursor operations on plain text before moving to complex code editing. This builds confidence and helps you understand the behavior without risking your codebase.