VCode home

Hold backspace to delete whole words

Agents: claude, codex, opencode · On: phone, desktop

Hold backspace in the composer and after two seconds it starts taking a whole word per repeat instead of one character.

Why you would use it

A mistyped path on a phone is thirty presses at one character each. Holding backspace gets you back to the start of the line in a few.

How to use it

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

    The composer holding a line with two paths in it, before the hold.

  2. Hold backspace. For the first two seconds it deletes characters as usual.

  3. Keep holding. From then on each repeat takes a word.

    The same box a few seconds later: most of the line is gone, cut back one segment at a time.

  4. Let go. The next press is a character again.

What you see

Nothing extra — the text just disappears faster. The steps it takes:

Options and settings

Option Default What it changes
hold threshold 2000 ms how long the key is down before presses take words
repeat gap 300 ms longer than this between presses counts as a new tap, and the hold starts over

Both are constants in public/editing.js (FAST_DELETE_HOLD_MS, FAST_DELETE_GAP_MS). There is no UI for them.

Limits and known gaps