> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NEXT Code Suggestion

> Predicts your intent and suggests the NEXT code.

NEXT helps you get started with AI-assisted coding by offering intelligent, context-aware edits right at your cursor.

With Qoder NEXT, 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.
* Get automatic dependency import.
* Get cross-file modification suggestions, eliminating the need to search for related changes manually.

## **How it works**

Qoder automatically displays suggestions either inline or side by side, depending on the width of the changed code and NEXT 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 `Tab`to 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.

To preview the suggested changes

* Hold down the` `⌥` (Mac)`key /`Alt` (Windows) key to preview.
* Release to restore the original code.

## **Settings**

### Enable NEXT

1. In the upper-right corner of your Qoder IDE, click the user icon or use the keyboard shortcut (`⌘` `⇧` `,` （macOS）or`Ctrl` `shift` `,`(Windows)),  and select **Qoder Settings**.
2. In the panel that appears, click **NEXT**.
3. Turn on **NEXT**.

### Trigger When Commenting

NEXT is enabled in comment blocks by default. You can disable it in Settings.

### Auto import

When turn on, NEXT can automatically import necessary modules for typescript.

### Quick Settings

Click the NEXT icon in the bottom-right corner  to access quick settings where you can:

1. Turn NEXT on or off globally.
2. Enable or disable NEXT for specific file extensions, e.g., markdown or plaintext.

## **Display behavior**

NEXT 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 NEXT can improve your coding efficiency:

* **Multi-point predictions within a single file**\
  When you modify a variable or function name, NEXT automatically identifies all related usage points in the same file and suggests updates across multiple locations simultaneously.
* **Automatic dependency imports**\
  As you write code that references external libraries or modules, NEXT automatically detects and adds the required import statements, eliminating manual imports.
* **Function-level autocompletion** \
  NEXT predicts entire function implementations based on your context, generating complete function bodies with proper logic and structure rather than just line-by-line suggestions.
* **Cross-file edit predictions**\
  When you make changes in one file, NEXT analyzes your codebase and proactively suggests related modifications in other files, saving you from hunting down dependencies manually.
