Skip to main content

Next Edit Suggestion

Next Edit Suggestion (NES) dynamically predicts your next code change based on full code context, recent edits, and cursor position. Press Tab to apply the suggested change.
NES is available only in JetBrains IDEs and Qoder CN IDE. Upgrade Qoder CN to v2.5.4 or later in JetBrains, or follow the installation guide.

Enable Next Edit Suggestion

  • JetBrains IDE
  • Qoder CN IDE
  1. Go to Settings > Qoder CN. Under NES Settings, select Enable NES (Next Edit Suggestion). This feature is disabled by default. When enabled, suggestion mode defaults to auto and code shifting defaults to No.
  2. Three suggestion modes are available: inline, side by side, and auto. Code shifting applies only in inline and auto modes, and controls whether existing code shifts to accommodate suggestions.

Use cases

  • Interact with suggestions: Hover over the accept button to open the Qoder CN NES menu, then click accept or reject. You can also press Tab to accept or Esc to reject. Click Settings to adjust preferences.
  • Navigate to out-of-view suggestions in the same file: If the next suggestion is outside the current viewport, a button appears. Click it or press Tab to jump to the suggestion.
  • Navigate to suggestions in other files: If the next suggestion is in a different file, a button appears. Click it or press Tab to open that file and jump to the suggestion.
Common NES use cases in JetBrains IDEs:

Rename

When you rename a parameter, NES suggests updating all related occurrences in the current context.

Refactor

NES suggests optimizations and refactoring for existing code within a function.

Add variables, fields, parameters, or comments

Add a variable

When you add a variable inside a code block, NES suggests updates to subsequent code that accesses that variable.

Add a field

After adding an annotation to a field, NES suggests adding the same annotation to other relevant fields.

Add a parameter

When you add a parameter to a function, NES suggests adding it to all call sites for that function.

Add a comment

Type / at the target location to trigger a comment suggestion. Press Ctrl + ↓ to accept the current inline suggestion.