Add Cursor at Click
What is Add Cursor at Click?
Add Cursor at Click: Drop an additional cursor anywhere you click while holding the modifier. Holding a modifier key while clicking adds an extra cursor at that spot. In VS Code it is Alt+Click on Windows and Linux and Option+Click on a Mac. In JetBrains IDEs it is Alt+Shift+Click. This is the flexible version of multi-cursor editing. The places you want to edit do not have to be aligned or match the same text. You click where you need a cursor, then type, delete or paste in all of them at once.
Frequently asked questions about Add Cursor at Click
What should you keep in mind with Add Cursor at Click?
It is useful for small, irregular edits, such as adding the same attribute to a few HTML elements spread over a template. Press Escape to go back to a single cursor. If you find yourself clicking twenty cursors into place, a regular expression search and replace is probably faster and less error-prone.
At a glance
| Category | Keyboard shortcuts |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |