Skip to content

Commit 2308443

Browse files
authored
Add a tips and tricks section for Copilot Completions
Added tips and tricks for using GitHub Copilot in Visual Studio, including keyboard shortcuts and customization options.
1 parent 453628e commit 2308443

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/ide/visual-studio-github-copilot-extension.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,18 @@ As you type code or comments in the editor, GitHub Copilot provides context-awar
8585
8686
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-extension/github-copilot-whole-line-completions.gif" alt-text="Animated screenshot that shows using the GitHub Copilot completions in Visual Studio.":::
8787
88-
**Tips**
88+
## Tips and tricks
89+
Keyboard shortcuts related to completions:
8990
9091
- Manually trigger a completion using <kbd>Alt</kbd>+<kbd>,</kbd>
9192
- Cycle through available completions using <kbd>Alt</kbd>+<kbd>.</kbd> (next) and <kbd>Alt</kbd>+<kbd>,</kbd> (previous)
93+
- Partially accept a completion word by word using <kbd>Ctrl</kbd>+<kbd>Right Arrow</kbd>
94+
- Partially accept a completion line by line using <kbd>Ctrl</kbd>+<kbd>Down Arrow</kbd>
95+
96+
Customize your completions experience with settings:
97+
98+
- If you feel like completions appear too quickly sometimes and interrupt your typing, go to **Tools** -> **Options** -> **IntelliCode** -> **Advanced** and turn on **wait for pauses in typing before showing whole line completions**. This setting will add a debounce to request code completions when you are typing, so you will not see completions quickly showing and disappearing while you are typing fast.
99+
- By default, completions are automatically triggered by each keystroke you type. If you do not want automatic completions and want to only receive completions when you request it, go to **Tools** -> **Options** -> **IntelliCode** -> **General** and turn off **Automatically generate code completions in the Editor**. Then, use <kbd>Alt</kbd>+<kbd>,</kbd> to manually trigger completions.
92100
93101
## Content exclusions
94102

0 commit comments

Comments
 (0)