VCode home

Make, rename and delete files

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

Right-click or long-press a row in the explorer for New file, New folder, Rename and Delete. Two buttons in the explorer head make a file or a folder at the top of the thread's folder.

Why you would use it

You want a scratch file for the agent to fill in, a folder to put its output in, or a file it left behind gone. Doing it from the tree is quicker than asking the agent, and it does not start a turn.

How to use it

  1. Open the explorer (#files-open).

  2. Right-click a row on a desktop, or hold your finger still on it for half a second on a phone. The menu (#explorer-menu) opens under the row, or over it near the bottom of the panel.

    The row menu open under src/format.js: New file, New folder, Rename and Delete

  3. Tap New file (#explorer-menu-new-file) or New folder (#explorer-menu-new-folder). On a folder row the new entry goes inside that folder; on a file row it goes beside the file. The menu turns into a name box (#explorer-menu-input) headed new file in <folder> or new folder in <folder>. Type the name and press Enter.

    The name box in the menu, headed new file in src, holding a file name

  4. To make something at the top of the thread's folder, tap New file (#explorer-new-file) or New folder (#explorer-new-folder) in the explorer head. They open the name box straight away.

  5. Tap Rename (#explorer-menu-rename). The box is headed rename <name> and holds the current name, with the part before the extension selected. Type the new name and press Enter. A name with a / in it moves the entry, counted from the folder it is in now; .. climbs out of it. The tree, the viewer and the unsaved edits follow the path the server made, not the one typed.

  6. Tap Delete (#explorer-menu-delete). It turns red and reads delete <name>? for three seconds. Tap it again to delete. A second tap within 0.3 seconds of the first, as in a double tap, does not count.

    The menu with Delete armed: the item red, reading delete format.js?

  7. To close the menu without doing anything, tap anywhere outside it, press back or Escape, or scroll the tree.

What you see

Limits and known gaps