# AI 코드 자동완성 기능

`AI 코드 자동완성 기능`은 사용자의 코드 입력을 바탕으로 GPT-4o mini 기반의 AI가 코드를 추천하고, 에디터에서 즉시 적용할 수 있는 편리한 기능입니다.

### 주요 기능

* **실시간 코드 완성:** 코드를 입력하는 순간, AI가 다음에 입력할 코드를 예측하여 자동으로 완성해줍니다.
* **코드 오류 탐지:** 코드를 작성하는 과정에서 발생할 수 있는 오류를 미리 감지하고 수정 제안을 제공합니다.
* **다양한 프로그래밍 언어 지원:** Python, JavaScript, Java 등 다양한 언어를 지원하여 편리하게 사용할 수 있습니다.

### 기능 설정 방법

* IDE 우측 하단의 AI ON/OFF 버튼을 `ON`으로 설정합니다.

<figure><img src="/files/74W3C0OtrScVV2efeWcK" alt=""><figcaption></figcaption></figure>

* 사이드바 > 환경설정 > 에디터 > AI 자동 생성 기능에서 GPT-4o mini를 `사용`으로 설정합니다.

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

### 사용 방법

1. 에디터에서 코드를 입력하면 커서 우측에 AI 추천 코드가 회색 텍스트로 표시됩니다.

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

2. 추천 코드가 적절하다면 `Tab` 키를 눌러 적용합니다.

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

{% hint style="info" %}
안내 사항

* 이 기능은 크레딧 플랜(Free, Membership) 사용자에게만 제공됩니다.
* Free 플랜 사용자는 제한된 사용량이 제공되며, 더 많은 사용을 원하면 Membership 플랜을 이용해주세요.
* 과도한 사용 시 월말까지 사용이 제한될 수 있으나, 매달 1일에 사용량이 초기화됩니다.&#x20;
  {% endhint %}

### 공유 컨테이너에서의 사용

공유된 컨테이너에서도 AI 코드 자동완성 기능을 제공합니다.

* 컨테이너 소유자가 AI 코드 자동완성을 `ON`으로 설정한 경우에만 사용 가능합니다.
* 공유 컨테이너에서의 AI 코드 자동완성 기능 사용량은 컨테이너 소유자에게 부과됩니다.
* 제공된 사용량을 모두 소진하면 해당 컨테이너에서 기능을 이용할 수 없습니다.


---

# Agent Instructions: 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:

```
GET https://help.goorm.io/ko/goormide/workspace/features/ai_code_completion_kor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
