VCode home

Alt moves and deletes a word

Agents: claude, codex, opencode · On: desktop

With a hardware keyboard, Alt in the composer does what Ctrl does: Alt and an arrow move the caret a word, Alt+Backspace takes the word behind it and Alt+Delete the word in front.

Why you would use it

It is the chord a terminal has. If your hand writes Alt+Backspace at a Konsole prompt, it writes it here too, and the browser's answer — Alt+Left is the back button, which in the installed app leaves the thread — is not what you meant.

How to use it

  1. Put the caret in the box (#draft).

    The composer holding a line with two paths in it.

  2. Alt+Left and Alt+Right move a word at a time.

  3. Alt+Backspace takes the word before the caret, Alt+Delete the word after it.

    The same box after five presses of Alt+Backspace: the last path is down to tests/, taken a segment at a time.

What you see

Nothing extra — the caret jumps, or the text goes. The steps are the ones a held backspace takes:

With text selected, Alt+Backspace and Alt+Delete take the selection and stop.

Limits and known gaps