When working in a C++ repo, you often are maintaining and updating existing code just as often as you are writing new code. However, updating code in

Dynamically Update C++ syntax using Next Edit Suggestions

submited by
Style Pass
2025-08-05 20:00:16

When working in a C++ repo, you often are maintaining and updating existing code just as often as you are writing new code. However, updating code in C++ can often require navigating to several different locations in a file to ensure consistency, which can disrupt your logical workflow. For example, changing a data member’s access level typically involves several steps: moving the member between the public and private sections of the class, adding getter/setter methods, and updating all references to respect this new access level.

GitHub Copilot now supports Next Edit Suggestions (or NES for short) to predict the next edits to come. NES in GitHub Copilot helps you stay in flow by not only helping predict where you’ll need to make updates, but also what you’ll need to change next.

At Microsoft Build, we showed how NES can dynamically update C++ code, including an example of updating code syntax that was using C functions to use the C++ Standard Template Library (STL).

Leave a Comment
Related Posts