Copilot code completions and suggestions in the editor speed you up in your daily programming and coding activities, at every keystroke. They help you finish the line you’re typing or anticipate your next edit, making your workflow smoother and faster. At the same time, editor is where you focus and put in the deep work. Based on your feedback, we understand how important it is to strike the right balance between helpful suggestions and maintaining control over your attention and workspace.
We’re excited to share features that give you enhanced control over your Copilot experience, so you can decide when suggestions show up and how much you accept, right inside your editor. These features are all available to you now, starting Visual Studio 2022 17.14.13 (August 2025).
Minimize Distractions When Coding
Do you prefer a quieter editor when actively thinking and coding? We have a few options in Visual Studio to help you stay focused on programming and still have Copilot assistance available for you when you are ready to review them.
1. No completions while typing
By default, completion is requested at every keystroke you type to provide just-in-time support. We learned from you that it could show up too quickly sometimes and interfere with your typing. You can pause code completions when you are quickly typing out the code. Â Go to Tools -> Options -> IntelliCode -> Advanced and turn on wait for pauses in typing before showing whole line completions. This will add a debounce to request code completions when you are typing, so you will not see the completions quickly showing and disappearing while you are typing fast.
2. Only receive code completions when you request it
You can now disable automatic completions popping on and trigger them manually with keyboard shortcuts. This gives you full control over when suggestions appear, helping you stay focused when you need to and get help when you want it.
Configure the trigger for code completions in Tools > Options > IntelliCode > General. The default experience is Automatically generate code completions in the Editor and you can uncheck this setting to only receive suggestions when you explicitly request them by pressing Alt
+ ,
or Alt
+ .
. If there are multiple code suggestions available after requesting, you can cycle through them by pressing Alt
+ ,
or Alt
+ .
as well.
When triggered with the keyboard shortcuts, a thinking hint bar will appear at your cursor position to indicate that Copilot is generating code suggestions. If no suggestions are returned, the hint bar will disappear after a few seconds. If suggestions are available, you can accept them by pressing Tab.
3. Hide next edit suggestions and only preview when you are ready
Next edit suggestions predict the next edit you will make based on your previous code edits. Sometimes these suggestions can be a bit distracting when appearing unexpectedly, and now you can hide NES by default and only review them when you want to.
NES will still be triggered based on your edits and when there is an available NES ready for you to review, a margin indicator will appear in the gutter space, pointing at the line that it has a suggestion for. To view this suggestion, you can either:
- Click the margin indicator or
- Press
Tab
and the suggestion will be displayed. Then, after viewing the suggestions, you can press Tab again to accept it or press ESC to dismiss it. After you accept a suggestion, any related suggestions will automatically appear again, as you might find them useful too. Any other new suggestions that are not related to your previously accepted suggestion will be hidden again.
For example, in the video below, after changing Point to Point3D, a NES is available but not displayed directly. The margin indicator and hint bar show that there is a suggestion on line 4 and then I clicked on the indicator to review it.
To try out this experience, go to Tools > Options > GitHub > Copilot > Copilot Completions and check Collapse Next Edit Suggestions.
Partially Accept a Code Suggestion
Have you ever wanted to only accept the first couple words or lines of a Copilot code completions instead of accepting the whole thing? We are excited to announce that you will now be able to partially accept a code completion word by word or line by line!
When having a Copilot code completion in the editor…
- Use the shortcut
Ctrl
+Right Arrow
to accept one word at a time, - Use the shortcut
Ctrl
+Down Arrow
to accept one line at a time.
You can also use the margin indicator to accept the completion partially. When clicking on the margin indicator, it will have options for partial accepts too.
Now you will have more fine-grained control over how much code completions you would like to accept instead of having to accept the entire suggestions and edit afterwards. Please try it out and let us know what you think!
Note: Partial accept overrides the existing functionality that bind to these shortcuts. If you would like to turn it off, please go to Tools > Options > IntelliCode > Advanced > Whole-line completions
Thanks for sharing your feedback!
We worked on these improvements because of your valuable feedback shared with us through Developer Community (Copilot completions are too intrusive – Developer Community, Ability to partially accept GitHub Copilot suggestions – Developer Community) and product surveys. We truly appreciate your input—it helps us build better experiences. Please try out these ways to fine-tune Copilot suggestions in your editor and let us know how we can keep making it better for you!
Check out the new Visual Studio Hub
Stay connected with everything Visual Studio in one place! Visit the Visual Studio Hub for the latest release notes, YouTube videos, social updates, and community discussions.
Appreciation for your feedback
Your feedback helps us improve Visual Studio, making it an even more powerful tool for developers. We are immensely grateful for your contributions and look forward to your continued support. By sharing your thoughts, ideas, and any issues you encounter through Developer Community, you help us improve and shape the future of Visual Studio.
0 comments
Be the first to start the discussion.