VCode home

Edit the command line with taps

Agents: claude, codex, opencode · On: phone

At a prompt in Shell mode, the line you are typing behaves like a text field: tap to put the caret anywhere in it, select a word and type over it, paste. What you type shows at once, and the shell's own line follows. This is for touch screens: on a computer with a mouse or trackpad the terminal takes keys as VS Code's does, and the line is the shell's own.

Why you would use it

A terminal on a phone usually takes keys one at a time. A typo near the start of a long command means pressing ← twenty times, and the phone's selection handles, cut and paste do nothing. Here the phone's own editing works on the command line.

How to use it

  1. In Shell mode, tap the line after the prompt. The keyboard comes up with the caret where you tapped. A tap anywhere else on the terminal brings it up in the line as well.

  2. Tap anywhere else in the line to move the caret there. Drag, or use the phone's selection handles, to select.

    A git commit command on the prompt line with the word "tpyo" selected.

  3. Type to replace the selection, or press Backspace to delete it. Paste works the same way: from the phone's paste button, or Ctrl+V (Cmd+V on a Mac) on a tablet's keyboard.

    The same line with the selection replaced by "typo".

  4. Press Enter, or the keypad's ⏎, to run the line. A phone keyboard shows its send key in Enter's place.

  5. Press ↑ on the keypad or a keyboard for the shell's history, or Tab to complete. The line fills with what the shell put there, and you can edit it the same way.

What you see

Limits and known gaps