Skip to content

Commit 9213413

Browse files
authored
Merge pull request #8313 from microsoft/nes-updates
Add collapsed mode for edit suggestions
2 parents 811c8c6 + 841cff8 commit 9213413

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

docs/copilot/ai-powered-suggestions.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,25 @@ To get started with Copilot NES, enable the VS Code setting `setting(github.copi
7171

7272
### Navigate and accept edit suggestions
7373

74-
You can quickly navigate suggested code changes with the `kbstyle(Tab)` key, saving you time to find the next relevant edit (no manual searching through files or references required). You can then accept a suggestion with the `kbstyle(Tab)` key again.
74+
You can quickly navigate to suggested code changes with the `kbstyle(Tab)` key, saving you time to find the next relevant edit (no manual searching through files or references required). You can then accept a suggestion with the `kbstyle(Tab)` key again.
7575

7676
An arrow in the gutter indicates if there is an edit suggestion available. You can hover over the arrow to explore the edit suggestion menu, which includes keyboard shortcuts and settings configuration:
77+
7778
![Copilot NES gutter menu expanded](./images/inline-suggestions/gutter-menu-highlighted-updated.png)
7879

7980
If an edit suggestion is below the current editor view, the arrow will point down instead of right:
81+
8082
![Copilot NES with arrow directions changing](./images/inline-suggestions/nes-arrow-directions.gif)
8183

8284
> [!IMPORTANT]
8385
> If you are using the VS Code vim extension, you may want to update your `keybindings.json`. Learn more [in the GitHub issue](https://github.com/VSCodeVim/Vim/issues/9459#issuecomment-2648156285).
8486
87+
### Reduce distractions by edit suggestions
88+
89+
By default, edit suggestions are indicated by the gutter arrow and the code changes are shown in the editor. If you prefer to reduce distractions, you can disable showing the code changes in the editor until you press the `kbstyle(Tab)` key to navigate to the suggestion or until you hover over the gutter arrow.
90+
91+
To disable showing the code changes in the editor, enable the `setting(editor.inlineSuggest.edits.showCollapsed)` setting in the Settings editor. Alternatively, hover over the gutter arrow and select the **Show Collapsed** option from the menu. To re-enable showing the code changes, disable the setting or select **Show Expanded** from the gutter arrow menu.
92+
8593
### Use cases for Next Edit Suggestions
8694

8795
**Catching and correcting mistakes**
@@ -138,7 +146,7 @@ You can enable or disable code completions either for all languages, or for spec
138146

139147
Add an entry for each language you want to enable or disable code completions for. To enable or disable code completions for all languages, set the value for `*` to `true` or `false`.
140148

141-
### Change the AI model
149+
## Change the AI model for completions
142150

143151
Different Large Language Models (LLMs) are trained on different types of data and might have different capabilities and strengths. Learn more about how to [choose between different AI language models](/docs/copilot/language-models.md) in VS Code.
144152

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)