Copilot CLI Keybindings
Slash commands and keyboard shortcuts for interactive GitHub Copilot CLI sessions.
Run
copilotto start an interactive session, then type/to see all available commands.
Session & workflow
| Command | What it does |
|---|---|
/clear, /new | Clear conversation history and start fresh |
/exit, /quit | Exit the CLI session |
/help | Show help for interactive commands |
/rename <name> | Rename the current session |
/resume [sessionId] | Switch to a different session |
/feedback | Provide feedback about the CLI |
Context & permissions
| Command | What it does |
|---|---|
/compact | Summarize conversation to reduce context window usage |
/context | Show context window token usage and visualization |
/allow-all, /yolo | Enable all permissions (tools, paths, URLs) |
/add-dir <directory> | Add a directory to the allowed list for file access |
/list-dirs | Display all allowed directories for file access |
/reset-allowed-tools | Reset the list of allowed tools |
Code workflows
| Command | What it does |
|---|---|
/plan [prompt] | Create an implementation plan before coding |
/review [prompt] | Run code review agent to analyze changes |
/diff | Review the changes made in the current directory |
/session [checkpoints|files|plan|rename] | Show session info and workspace summary |
/tasks | View and manage background tasks |
Model & configuration
| Command | What it does |
|---|---|
/model, /models [model] | Select AI model to use |
/agent | Browse and select from available agents |
/mcp [show|add|edit|delete|disable|enable] | Manage MCP server configuration |
/instructions | View and toggle custom instruction files |
/init | Initialize Copilot instructions and agentic features |
Skills & plugins
| Command | What it does |
|---|---|
/skills [list|info|add|remove|reload] | Manage skills |
/plugin [marketplace|install|uninstall|update|list] | Manage plugins |
Utilities
| Command | What it does |
|---|---|
/cwd, /cd [directory] | Change working directory or show current directory |
/share [file|gist] [path] | Share session to markdown file or GitHub gist |
/usage | Display session usage metrics and statistics |
/ide | Connect to an IDE workspace |
/terminal-setup | Configure terminal for multiline input support |
/theme [show|set|list] | View or configure terminal theme |
/experimental [on|off|show] | Show or toggle experimental features |
/login | Log in to Copilot |
/logout | Log out of Copilot |
Keyboard shortcuts
| Key | What it does |
|---|---|
↑ / ↓ | Navigate prompt history |
Shift+Tab | Toggle between plan mode and execution mode |
Escape | Cancel current input or operation |
Ctrl+C | Interrupt running operation |
Common workflows
| Scenario | Command or shortcut |
|---|---|
| Create plan before coding | /plan → describe task → review plan |
| Switch to plan mode | Shift+Tab → review → Shift+Tab to execute |
| Switch AI model | /model → select model |
| Start fresh task | /clear or /new |
| Resume previous session | /resume → select session |
Tips
- Enable plan mode (
Shift+Tab) to review commands before execution - Use
/allow-allor/yoloonly when confident in operations - Use
/planbefore complex implementations - Run
/diffto review changes before committing