Keyboard Shortcuts Master List
All keyboard shortcuts for GitHub Copilot, Cursor, and Claude Code side-by-side
title: "Keyboard Shortcuts Master List" description: "All keyboard shortcuts for GitHub Copilot, Cursor, and Claude Code side-by-side" section: "Reference" readTime: "8 min" badge: "Reference"
Keyboard Shortcuts Master List
Side-by-side reference for all AI coding tool shortcuts.
GitHub Copilot (VS Code)
Inline Suggestions
| Action | Windows / Linux | macOS |
|---|---|---|
| Accept full suggestion | Tab | Tab |
| Dismiss suggestion | Esc | Esc |
| Accept next word | Ctrl+Right | Cmd+Right |
| Next suggestion | Alt+] | Option+] |
| Previous suggestion | Alt+[ | Option+[ |
| Open suggestion panel | Ctrl+Enter | Ctrl+Enter |
| Trigger suggestion manually | Alt+\ | Option+\ |
Chat
| Action | Windows / Linux | macOS |
|---|---|---|
| Open Chat view | Ctrl+Alt+I | Ctrl+Cmd+I |
| Open Inline Chat | Ctrl+I | Cmd+I |
| Submit message | Enter | Enter |
| New line in message | Shift+Enter | Shift+Enter |
Attach file (#file) | Type # | Type # |
| New chat session | Ctrl+N (in chat) | Cmd+N (in chat) |
Agent / Smart Actions
| Action | Windows / Linux | macOS |
|---|---|---|
| Generate commit message | Ctrl+Shift+G → ✨ | Cmd+Shift+G → ✨ |
| Fix selected code | Select → right-click → Generate Code → Fix | Same |
| Explain selection | Select → right-click → Explain | Same |
| Generate docs | Select (optional) → right-click → Generate Code → Generate Docs | Same |
| Review selected code | Select → right-click → Generate Code → Review | Same |
Cursor
Cursor merged Chat and Composer into a single Agent side panel in version 0.46. Cursor's shortcut docs list macOS keys; on Windows/Linux, Cmd becomes Ctrl and Opt becomes Alt (for example, Inline Edit is Cmd+K on Mac, Ctrl+K on Windows/Linux).
Agent (Chat)
| Action | Windows / Linux | macOS |
|---|---|---|
| Toggle Agent side panel | Ctrl+I or Ctrl+L | Cmd+I or Cmd+L |
| New chat | Ctrl+N or Ctrl+R | Cmd+N or Cmd+R |
| New chat tab | Ctrl+T | Cmd+T |
| Add selected code to chat | Ctrl+Shift+L | Cmd+Shift+L |
| Open mode menu | Ctrl+. | Cmd+. |
| Rotate between Agent modes | Shift+Tab | Shift+Tab |
| Submit message (queued if Agent is busy) | Enter | Enter |
| Send immediately | Ctrl+Enter | Cmd+Enter |
| Cancel generation | Ctrl+Shift+Backspace | Cmd+Shift+Backspace |
| Reference a file or folder | Type @ | Type @ |
| Reference terminal output | @Terminals | @Terminals |
| Reference a previous chat | @Chats | @Chats |
| Reference git changes | @Commit / @Branch | @Commit / @Branch |
Tab (Inline Completion)
| Action | Windows / Linux | macOS |
|---|---|---|
| Accept full suggestion | Tab | Tab |
| Dismiss suggestion | Esc | Esc |
| Accept next word | Ctrl+Right | Cmd+Right |
Editor
| Action | Windows / Linux | macOS |
|---|---|---|
| Inline Edit (selection or terminal) | Ctrl+K | Cmd+K |
| Toggle Agent layout | Ctrl+E | Cmd+E |
| Open command palette | Ctrl+Shift+P | Cmd+Shift+P |
| Open Cursor settings | Ctrl+Shift+J | Cmd+Shift+J |
Claude Code (Terminal)
Claude Code is terminal-first — these are keyboard shortcuts within the interactive session.
| Action | Shortcut |
|---|---|
| Send message | Enter |
| New line in message | Shift+Enter (iTerm2, WezTerm, Ghostty, Kitty, Warp, Apple Terminal, Windows Terminal), or \ + Enter / Ctrl+J in any terminal |
| Answer a permission prompt | Arrow keys to choose Yes / Yes, and don't ask again / No, then Enter |
| Decline a permission prompt | Esc |
| Interrupt Claude mid-turn (keeps work so far) | Esc |
| Clear input draft, or open rewind menu (empty input) | Esc Esc |
| Interrupt, or clear input (press again to exit) | Ctrl+C |
| Quit session | Ctrl+D twice, or /exit (alias /quit) |
| Cycle permission modes (Manual, accept edits, plan, ...) | Shift+Tab |
| Switch model | Alt+P (Option+P on macOS) |
| Toggle extended thinking | Alt+T (Option+T on macOS) |
| Reverse-search prompt history | Ctrl+R |
| Toggle transcript viewer (detailed tool output) | Ctrl+O |
| Background a running command or agent | Ctrl+B (press twice in tmux) |
| Toggle Claude's to-do checklist | Ctrl+T |
| Open prompt in external editor | Ctrl+G |
| Paste image from clipboard | Ctrl+V (Alt+V on Windows/WSL) |
| Stash / restore prompt | Ctrl+S |
| Undo last input edit | Ctrl+_ |
| Redraw a garbled screen | Ctrl+L |
| Show shortcut help panel | ? on empty input |
| Run a shell command directly | ! at start of input |
| Mention a file | @ |
| Commands and skills | / at start of input |
| Show help | /help |
| Clear conversation | /clear |
| Show session info | /status |
Readline-style editing also works in the prompt: Ctrl+A / Ctrl+E (line start/end), Ctrl+K / Ctrl+U (delete to end/start), Ctrl+W (delete back to whitespace), Ctrl+Y (paste deleted text), and Alt+B / Alt+F (word back/forward).
On macOS, Option/Alt shortcuts such as Alt+B, Alt+F, and Alt+P require setting Option as Meta in your terminal. Run /terminal-setup to install a Shift+Enter binding in VS Code, Cursor, Alacritty, or Zed.
Vim-style editing is available via /config → Editor mode (the old /vim command was removed).
Useful CLI Shortcuts (Shell)
# Alias for quick access
alias cc="claude"
alias ccp="claude -p" # non-interactive
# Pipe code from clipboard (macOS)
pbpaste | claude -p "Review this code"
# Pipe code from clipboard (Linux)
xclip -sel clip -o | claude -p "Review this code"VS Code Universal Shortcuts (Relevant to AI)
These VS Code shortcuts improve AI workflow regardless of which AI tool you use:
| Action | Windows / Linux | macOS |
|---|---|---|
| Select current word | Ctrl+D | Cmd+D |
| Select to end of line | Shift+End | Shift+Cmd+Right |
| Select all occurrences | Ctrl+Shift+L | Cmd+Shift+L |
| Multi-cursor at line ends | Select lines → Shift+Alt+I | Shift+Option+I |
| Move line up/down | Alt+Up/Down | Option+Up/Down |
| Duplicate line | Shift+Alt+Down (Linux: Ctrl+Shift+Alt+Down) | Shift+Option+Down |
| Fold all | Ctrl+K, Ctrl+0 | Cmd+K, Cmd+0 |
| Go to definition | F12 | F12 |
| Peek definition | Alt+F12 (Linux: Ctrl+Shift+F10) | Option+F12 |
| Toggle terminal | Ctrl+` | Ctrl+` |
| Command palette | Ctrl+Shift+P | Cmd+Shift+P |
Customizing Shortcuts
Copilot (VS Code)
Ctrl+K Ctrl+S (Cmd+K Cmd+S on macOS), or Command Palette → "Preferences: Open Keyboard Shortcuts" → search "copilot" → rebind the command.
Cursor
Cmd/Ctrl+R then Cmd/Ctrl+S, or Cmd/Ctrl+Shift+P → "Preferences: Open Keyboard Shortcuts" → search for the action you want to rebind.
Cursor uses VS Code's keybinding format in keybindings.json. Look up the command ID in the Keyboard Shortcuts editor:
{
"key": "ctrl+shift+a",
"command": "<command-id-from-keyboard-shortcuts-editor>"
}Claude Code
Run /keybindings to create or open ~/.claude/keybindings.json. Bindings are grouped by context and map keystrokes to namespace:action names; set an action to null to unbind it. Changes apply without restarting.
{
"$schema": "https://www.schemastore.org/claude-code-keybindings.json",
"bindings": [
{
"context": "Chat",
"bindings": {
"ctrl+e": "chat:externalEditor",
"ctrl+s": null
}
}
]
}Ctrl+C and Ctrl+D are reserved and cannot be rebound. Chords such as "ctrl+k ctrl+s" are supported.