Skip to content

Commit ab4dc91

Browse files
committed
Add updates for hide next edit suggestions
1 parent 8e16694 commit ab4dc91

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

docs/ide/copilot-next-edit-suggestions.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Copilot Next Edit Suggestions
33
description: Use Copilot Next Edit Suggestions (NES) to predict where you'll want to make your next edit and what that edit should be, based on your recent code edits.
4-
ms.date: 5/13/2025
4+
ms.date: 8/20/2025
55
ms.update-cycle: 180-days
66
ms.topic: get-started
77
author: anandmeg
@@ -76,6 +76,22 @@ NES helps with repetitive changes, such as updating code syntax to modern C++ us
7676

7777
- Match code style. After you paste some code, NES suggests adjustments to match it with the style of the surrounding code.
7878

79+
## Hide Next Edit Suggestions (Preview)
80+
81+
If you prefer a quieter editor, you can now hide Next Edit Suggestions (NES) in Visual Studio and review them only when you choose.
82+
83+
NES will still be triggered by your edits, but when a suggestion is available, only the margin indicator appears in the gutter, pointing to the relevant line. The suggestion itself remains hidden until you choose to view it.
84+
85+
:::image type="content" source="media/vs-2022/next-edit-suggestions/next-edit-suggestions-collapse.png" alt-text="Screenshot that shows NES being hidden and only gutter arrow is shown.":::
86+
87+
To view a hidden suggestion, click the margin indicator or press the `Tab` key. The suggestion will then be displayed. You can press `Tab` again to accept it or `Esc` to dismiss it. After accepting a suggestion, any related suggestions will automatically appear. Unrelated new suggestions will remain hidden until you choose to view them.
88+
89+
For example, in the following video, after changing Point to Point3D, an NES suggestion becomes available but is not shown immediately. The margin indicator and hint bar highlight a suggestion on line 4, which is displayed after clicking the indicator.
90+
91+
:::image type="content" source="media/vs-2022/next-edit-suggestions/next-edit-suggestions-collapse-mode.gif" alt-text="Animated screenshot showing the NES collapse mode flow.":::
92+
93+
To enable this feature, go to **Tools** > **Options** > **GitHub** > **Copilot** > **Copilot Completions** and select **Collapse Next Edit Suggestions**.
94+
7995
## Related content
8096

8197
- [GitHub Copilot Completions](visual-studio-github-copilot-extension.md)
576 KB
Loading
15.4 KB
Loading

0 commit comments

Comments
 (0)