Multi-cursor
Put more than one cursor on the page and type in all those places at once.
When you would want it
Changing the same word in six places is six edits done one at a time, or one edit done six times at once.
Where to find it
- All Features → Multi-cursor
- Settings → adcode.editing.multiCursor
- Keyboard → CmdOrCtrl+D
What you get out of it
- Renaming a repeated word takes one edit instead of six.
- Lining up data or stripping a common prefix across many lines happens in a single action.
- Every cursor shares one undo step, so one Ctrl+Z undoes the whole batch cleanly.
How to use it, step by step
- Ctrl+click where you want a second cursor - everything you type now happens in both places.
- Select a word and press Ctrl+D repeatedly to place a cursor on each copy of it.
- Press Ctrl+Alt+Up or Ctrl+Alt+Down to stack cursors straight down a column of lines.
- Edit as usual - typing, pasting, and formatting apply at every cursor at once.
- Press Escape when you are done to collapse back to a single cursor.
Why this beats the usual way
Most editors bolt multi-cursor on through extensions or hide it behind modes. In ADCode the three ways of adding a cursor work identically everywhere, and Escape always gets you out - there is no mode to get stuck in.
Shortcut
CmdOrCtrl+D
Find it in Universal Search
Multi-cursor · Editing