VCode home

Rename a tab

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

Give a tab a name of your own: click its label or folder line in the strip, pick Rename in a row's ⋯ menu in the tab bar, double-tap or double-click the row, use the pencil in the Threads sheet, type /rename <name> in the composer, or press Ctrl+Shift+R (Ctrl+R in the desktop app). The name shows in the strip, the drawer and the Threads sheet.

Why you would use it

A tab is named after its folder, or in a project after the project, until you say otherwise, so three tabs on one repo read as the same row three times. A name is what tells them apart.

How to use it

From the strip:

  1. Click or tap the name or folder text of the tab you are already in (.label or .folder). A tab you are not in is picked first; a second click on its name inside half a second is still the pick, not a rename.
  2. Type the name in the field that takes the name's place, then press Enter or tap away. A tap on the folder line opens the same field over the name.

The tab you are in, its name turned into a text field with the name selected.

From the tab bar:

  1. Tap the ⋯ on the tab's row (.wsmore) and pick Rename (#tab-menu-rename), the first item. Right-clicking a row, or a tab in the strip, opens the same menu; from the strip the field opens on the strip tab.
  2. Type the name in the field that takes the row's width, then press Enter or tap away.

The tab bar on a phone with a row's ⋯ menu open: Rename, Pin, Done, Close.

You can also double-click a row, or double-tap it on a phone. On a window 1080px wide or more the first click opens the tab and the second opens the field. On a phone the drawer stays open and the field opens on the row.

From the Threads sheet:

  1. Open the Threads sheet (#sessions).
  2. Tap the pencil on the row (.wsedit, labelled "Rename").
  3. Type the name in the field that replaces it.

A Threads sheet row whose name has become a text field, with the old name selected.

  1. Press Enter, or tap away, to save. Press Escape to discard.

The same Threads sheet row wearing the new name.

From the keyboard:

From the composer:

On any agent you do not have to do any of this. When you send the first message and the tab still has the name it started with (its folder's, or in a project the project's), VCode asks the tab's own agent for a short name for it. The name arrives a few seconds later, while the agent is still working on the message:

What you see

The row's name becomes a text field with the current name selected. Saving repaints the strip, the drawer and the sheet at once.

A bare /rename on Codex, OpenCode or Cursor, and a bare /r anywhere, shows the toast rename: add a name, as in /rename my tab.

A rename to nothing is refused by the server with a tab needs a name, and the tab keeps the name it had.

Options and settings

Option Default What it changes
/rename <name> Sets the name on any agent
/r <name> The same command
Rename tab key Mod+Shift+R; Mod+R in the desktop app Opens the field on the tab you are in. See change-keyboard-shortcuts
bare /rename Claude only Sent to the Claude CLI, which picks a name
automatic name Every agent, no setting Named from your first message as it goes in, only while the tab still has the name it started with
name length Trimmed, and cut at 80 characters, however it arrives

Limits and known gaps