Skip to content

Commit 841cff8

Browse files
committed
Add collapsed mode
1 parent 42eaf95 commit 841cff8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/copilot/ai-powered-suggestions.md

Lines changed: 9 additions & 1 deletion
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**

0 commit comments

Comments
 (0)