Ways to Interact
| Mode |
Trigger |
Best For |
| Inline suggestions |
Just start typing |
Fast code completion |
| Inline Chat |
Ctrl+I / Cmd+I |
Quick edits and refactors in place |
| Chat view |
Ctrl+Alt+I / Cmd+Ctrl+I |
Multi-turn conversations, planning, explaining |
| Copilot Edits |
Ctrl+Shift+I |
Multi-file coordinated changes |
| Agent mode |
Chat view → Agent |
Autonomous multi-step tasks |
Chat Participants (@)
| Participant |
What it does |
Example |
@workspace |
Knows about your entire project |
@workspace where is auth handled? |
@vscode |
Knows VS Code features and settings |
@vscode how do I change my theme? |
@terminal |
Knows your terminal and shell |
@terminal /explain |
@github |
Queries GitHub issues, PRs, and repos |
@github show me my open PRs |
The gem most teams miss: run a command in the integrated terminal, then ask @terminal /explain to get the flags, side effects, and safer alternatives.
Slash Commands (/)
| Command |
Purpose |
/explain |
Explain the selected code or command |
/fix |
Propose a fix for the selection or diagnostic |
/tests |
Generate unit tests for the selection |
/doc |
Generate documentation or comments |
/new |
Scaffold a new project or file |
/newNotebook |
Create a new Jupyter notebook |
/clear |
Reset the chat context |
Heads up: VS Code chat slash commands are not the same list as Copilot CLI slash commands — see
CLI slash commands for the terminal set.
Combine participants and slash commands:
@workspace /explain how does the login flow work end to end?
@terminal /explain
@workspace /tests for src/services/pipeline.py
Context Variables (#)
| Variable |
Purpose |
#file |
Reference a specific file |
#selection |
Current editor selection |
#editor |
Currently active editor |
#terminalLastCommand |
The last command you ran |
#terminalSelection |
Highlighted terminal output |
#codebase |
Broader codebase search |
#problems |
Current diagnostics / problems panel |
#changes |
Uncommitted git changes |
Example prompts:
/fix #problems
Explain #terminalLastCommand and why it failed
Refactor #selection to use async/await
Summarize #changes for a commit message
Edits vs. Agent Mode:
- Copilot Edits = coordinated changes across files you choose, with inline diff review.
- Agent mode = give a goal, and Copilot plans, edits, runs commands, and iterates until done.