Reference
Shortcuts and commands
Keyboard shortcuts, the command palette, and chat slash commands.
On Windows and Linux, use Ctrl wherever this page says ⌘. Press ⌘ ? in a workspace to see the shortcuts there.
Workspace shortcuts
| Shortcut | Action |
|---|---|
⌘ K | Show all commands |
⌘ P | Go to file |
⌘ Shift F | Search in files |
⌘ B | Show or hide the sidebar |
⌘ Alt B | Show or hide the inspector |
⌘ J | Show or hide the terminal |
⌘ Shift O | New chat |
⌘ ? | Keyboard shortcuts |
These don't fire while you're typing in a terminal or in an open dialog.
Editor
| Shortcut | Action |
|---|---|
⌘ S | Save the file |
⌘ F | Find in the open file |
← → | Move between open tabs (when a tab is focused) |
Delete | Close the focused tab |
In the file tree, use the arrow keys, Home, and End to move around.
Terminal
| Shortcut | Action |
|---|---|
Ctrl ` | Show or hide the terminal |
Ctrl Shift ` | New terminal |
Ctrl Shift 5 | Split the terminal |
Chat
| Key | Action |
|---|---|
Enter | Send. While the agent is working, queue a follow-up. |
Shift Enter | New line |
Esc | Stop the running turn |
↑ | In an empty message box, bring back your last message |
⌘ Enter | Commit, in the commit message box |
While you're following a teammate, press Esc to stop.
Command palette
Press ⌘ K and start typing.
| Group | Commands |
|---|---|
| Go to | Go to file…, Search in files… |
| Workspace | New chat, New worktree…, Import a session…, Share workspace…, Workspace settings… |
| View | Show or hide the sidebar, inspector, and terminal; Show the worktrees board; Show Files, Changes, Review, History, or Browser |
| Worktrees | Switch to any worktree |
| Help | Keyboard shortcuts, Welcome tour, Send feedback… |
Slash commands
Type / at the start of a chat message.
Agent commands
| Command | What it does |
|---|---|
/plan | Investigate and propose a plan without changing files |
/ask | Answer a question without changing files |
/goal | Set a goal for this chat and keep working toward it |
/review | Review the uncommitted changes in this worktree |
/init | Create or update AGENTS.md for this project |
Workspace commands
| Command | What it does |
|---|---|
/open <file> | Open a file in Files |
/changes | Show this worktree's changes |
/diff | Review the uncommitted diff |
/terminal | Open the terminal |
/preview [port] | Preview your app in the browser |
/branch <name> | Switch to, open, or create a branch |
/share | Share this workspace |
/push | Push this branch to GitHub as you |
/pr <title> | Push this branch and open a pull request |
/new | Start a new chat |
/rename <title> | Rename this chat |
/board | Show the board of worktrees |
/settings | Open your settings |
/import | Import a local agent session |
Viewers can use /open, /changes, /diff, /board, and /settings; the rest need editor access. /push and /pr work in workspaces created from a public GitHub repository; see Git, GitHub, and pull requests.