> For the complete documentation index, see [llms.txt](https://help.goorm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.goorm.io/en/goormide/workspace/features/ai-code-completion.md).

# AI code completion

The `AI code completion feature` is a convenient function that recommends code based on the user's input using GPT-4o mini-based AI, which can be immediately applied in the editor.

### Key features

* **Real-time code completion:** As you type, AI predicts the next code to be entered and automatically completes it for you.
* **Code error detection:** It detects potential errors in your code as you write and provides suggestions for corrections.
* **Support for various programming languages:** It supports a wide range of languages, including Python, JavaScript, and Java, for your convenience.

### How to Set Up the Feature

* Set the AI ON/OFF button to `ON` in the bottom right corner of the IDE.

<figure><img src="/files/xF3HvY9y30wxVDYBAqfu" alt=""><figcaption></figcaption></figure>

* In the sidebar > Preferences > Editor > AI Completion > set GPT-4o mini into `ON`

<figure><img src="/files/jRW9TukZEtX7dj7fy7PP" alt=""><figcaption></figcaption></figure>

### How to Use

1. When you enter code in the editor, AI-recommended code will be displayed as gray text to the right.

<figure><img src="/files/LqnYTZQCPpyIGsywX2yh" alt=""><figcaption></figcaption></figure>

2. If you like to use the recommended code, press the `Tab` key to apply it.

<figure><img src="/files/1a23SDm95WDb3FIUZGCe" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note

* This feature is only available to credit plan (Free, Membership) users.
* Free plan users are provided with limited usage. For more usage, please use the Membership plan.
* Excessive use may restrict usage until the end of the month, but usage will be reset on the 1st of each month.
  {% endhint %}

### Use in Shared Containers

The AI code auto-completion feature is also available in shared containers.

* It can only be used if the container owner has set AI completion to `ON`.
* The usage of the AI completion feature in shared containers is charged to the container owner.
* If all provided usage is exhausted, the feature cannot be used in that container.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.goorm.io/en/goormide/workspace/features/ai-code-completion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
