NEW: Claude Code Security — research preview →

Key Concepts & Shortcuts

Essential keyboard shortcuts, slash commands, and chat features at a glance

Read time: 5 min

title: "Key Concepts & Shortcuts" description: "Essential keyboard shortcuts, slash commands, and chat features at a glance" section: "Copilot" readTime: "5 min"

Key Concepts & Shortcuts

Essential Keyboard Shortcuts

On macOS, use Cmd where noted. See the keyboard shortcuts reference for a full table.

ShortcutAction
Ctrl+Alt+I (Ctrl+Cmd+I on macOS)Open the Chat view
Ctrl+N (Cmd+N)New chat session
Ctrl+I (Cmd+I)Inline chat in editor or terminal
Ctrl+Shift+Alt+LQuick Chat
TabAccept inline suggestion / navigate to next edit suggestion
Ctrl+Right (Cmd+Right)Accept next word of inline suggestion
Alt+] / Alt+[Cycle through alternative suggestions
EscapeDismiss inline suggestion

Use the language model picker in the chat input to switch models.

Chat Access Methods

MethodShortcutBest for
Chat viewCtrl+Alt+IOngoing conversation, multi-file edits
Inline chat (editor/terminal)Ctrl+IIn-place edits while in flow
Quick ChatCtrl+Shift+Alt+LQuick questions without switching context
Agents windowChat: Open Agents windowManaging sessions across projects

Slash Commands

Available commands depend on the chat surface and enabled features. Type /help to see what your session supports.

CommandPurpose
/explainExplain selected code or a concept
/fixFix a code block or linting/compiler error
/testsGenerate tests for selected code
/docGenerate documentation comments
/newScaffold a new project or file
/initGenerate workspace instructions (copilot-instructions.md)
/planResearch a change and propose an implementation plan
/compactSummarize context to free up space
/forkCopy the conversation into a new session
/clearStart a new session
/models, /toolsInspect available models and tools

Context References

Type # in the chat input to browse tools and context items. Agents also choose tools automatically, so naming one is optional.

SyntaxAdds to context
#fileA specific file
#folderA folder and its files
#symbolA specific symbol/function
#codebaseSemantic search across workspace
#selectionCurrent editor selection
#changesSource control changes
#fetchContent from a URL
#searchResultsResults from the Search view

Chat Participants (@-mentions)

Participants are still available in chat surfaces that support them. In agent mode, #codebase and the agent's own tools usually replace the old @workspace participant.

ParticipantDomain
@githubGitHub repos, issues, PRs, code search
@terminalIntegrated terminal, shell commands
@vscodeVS Code features, settings (for example @vscode /search builds a Search view query)

Context Window

A visual indicator in the chat input shows context window usage. Use /compact (or Compact Conversation from the context window control) when context fills up. VS Code also compacts automatically when the window fills.