Next edit suggestions (NES) help you get started with AI-assisted coding by offering intelligent, context-aware edits right at your cursor. With Qoder NES, you can:
  • Edit multiple lines at once near your cursor.
  • Get suggestions based on recent changes and previously accepted edits.
  • Navigate seamlessly within files to the next suggestions.

How it works

Qoder automatically displays suggestions either inline or side by side, depending on the width of the changed code and NES prompt:
  • If the combined width exceeds your editor’s width, suggestions appear inline.
  • Otherwise, they are shown side-by-side for easier comparison.
To accept or reject a suggestion:
  • Hover over Accept/Reject, or
  • Press Tabto accept, Esc to reject.
If the next edit is outside your current view:
  • Click Tab to Jump or press Tab to go to the edit location in the same file.
  • For edits in other files, click Tab to Jump or press Tab to navigate to the edit location of the target file.

Enable NES

  1. In the upper-right corner of your Qoder IDE, click the user icon or use the keyboard shortcut ( , (macOS)orCtrl shift ,(Windows)), and select Qoder Settings.
  2. In the panel that appears, click Completion.
  3. Turn on NES (Next Edit Suggestion).

Display behavior

NES supports intelligent editing for deletions, modifications, and additions, with visual diffs tailored to the type of change.

Scenarios

Here are some common scenarios that demonstrate how Qoder NES can improve your coding efficiency:
  • Rename: Automatically suggests consistent variable or function names based on context.
  • Refactor: Proposes code improvements and refactoring opportunities within functions.
  • Add:
    • Variables: When you declare a new variable, NES predicts how it will be used later in the code and suggests follow-up edits.
    • Fields: When you annotate a field, it suggests applying the same or related annotations to other fields.
    • Parameters: When you add parameters to a function, it suggests the code snippets where the invoked function is modified.
    • Comments: Type /  to trigger a comment suggestion. Press Ctrl    to accept the inline comment.