Skip to content

Commit a9eb6c6

Browse files
authored
Merge pull request #14221 from anandmeg/next-edit-updates
Add hide next edit suggestions
2 parents 501a560 + ff31315 commit a9eb6c6

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

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

Lines changed: 15 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,20 @@ 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
80+
81+
With the August release of Visual Studio 17.14, you can now hide Next Edit Suggestions (NES) in Visual Studio and review them only when you choose. To enable this feature, select **Tools** > **Options** > **GitHub** > **Copilot** > **Copilot Completions** > **Collapse Next Edit Suggestions**.
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+
As in the following example, 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+
7993
## Related content
8094

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

0 commit comments

Comments
 (0)