Next edit suggestions
When you write or edit code, AI Assistant can predict which parts you might want to change or add next and suggest likely edits. This allows you to quickly apply a suggestion and jump to the next place that might need a change, making it easier to update related code throughout the file.
Enable next edit suggestions
To enable the feature:
Go to .

In the Features section, select the Enable next edit suggestions setting. Additionally, you can further configure how the edits are suggested:
Languages – select the programming languages for which AI Assistant should generate suggestions.
Chain suggestions – enable this setting to automatically request the next edit suggestion once the previous one has been accepted.
Code Insight actions – enable this setting to allow AI Assistant to invoke code insight actions, such as rename refactoring, when suggesting edits.
Click Apply to save changes.
Invoke next edit suggestions
Once the next edit suggestions are enabled:
In the editor, modify an existing line or write new code. AI Assistant will suggest the next edit.
Press Tab to jump to the suggestion to review it, then press Tab again to apply it.
Repeat the previous step to apply other suggestions.
To cancel the suggestion, press Escape.
Application examples
This section provides several examples of what can trigger the next edit suggestions feature.
- Simple formatting
In the example below, the code has a formatting issue: no space after commas in parameter lists. Once you fix it in one place, AI Assistant will detect the pattern and suggest fixing all similar cases.
- Fixing typos
The example below demonstrates another common case: when you make a typo in your code, AI Assistant suggests replacing the typo with the correct word.
- Introducing changes
The main case for this feature is when you introduce changes to your code. AI Assistant suggests the next place that you might want to change and provides the most likely edit.