(Last updated May 7 2025)
Inline Completions (Defaults)
Action | Windows / Linux | macOS |
---|---|---|
Accept suggestion |
Tab |
Tab |
Dismiss suggestion |
Esc |
Esc |
Next suggestion |
Alt +] |
⌥ ] |
Previous suggestion |
Alt +[ |
⌥ [ |
Accept next word |
Ctrl → |
⌘ → |
Accept next line |
Ctrl Alt → |
⌥ → |
Show alternatives |
Alt +. |
⌥ +. |
Copilot Chat Hotkeys
Task | Shortcut |
---|---|
Open Quick Chat |
Ctrl Shift Alt L ( |
Start Inline Chat |
Ctrl I ( |
New chat session |
Ctrl L ( |
Customise in File ⇢ Preferences ⇢ Keyboard Shortcuts
Slash Commands (in Chat panel)
Command | What it does |
---|---|
|
Explain selected code or active file |
|
Suggest bug fixes |
|
Generate unit tests |
|
Add documentation comments |
|
Improve performance |
|
Show Copilot help |
|
Start a new chat session |
|
Scaffold a new project |
|
Locate & fix a failing test |
Chat Variables
Variable | Adds this context to your prompt |
---|---|
|
The active/open file |
|
Current Git diff/changes |
|
Relevant workspace files |
|
Fetched web‑page content |
Prompt Tips
-
Start broad → refine Ask a general question, then drill down.
-
Show, don’t tell Include code snippets or edge‑cases.
-
Break up tasks Tackle one function or test at a time.
-
Use variables
#file
,#changes
keep the prompt focused. -
Iterate Review output, ask Copilot to refine or explain.
Best Practices & Safety
-
Always review generator output before committing.
-
Use
/fix
or/optimize
to clean up & refactor. -
Check licenses if copying large blocks.
-
Keep secrets & personal data out of prompts.
Troubleshooting
Symptom | Quick Check |
---|---|
Shortcut conflict |
Re‑bind in Keyboard Shortcuts window |
Context lost in large file |
Select only the relevant code or use
|