> For the complete documentation index, see [llms.txt](https://simian114.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simian114.gitbook.io/blog/undefined-1/odds_and_ends/ide/rubymine/3.-completion.md).

# 3. Completion

### Basic completion

1. `ctl + Space`

   > 맥은 한영 전환 때문에 작동하지 않는다. 사용하고 싶다면 입력소스 전환 키를 바꾸자.
2. explicitly 하게 자동완성 목록을 보고 싶을 때 사용한다

### Hide completion

1. `opt + /`
   * 자동완성 목록이 뜨는게 아닌, 진짜로 자동완성을 시켜준다.
   * 만약 한번에 내가 원하는 완성이 되지 않았다면 여러 번 누르면 됨
2. `opt + shift + /`
   * 이전 자동완성으로 돌아가고 싶을

### Postfix completion

아래와 같은 코드가 있을 때 커서가 맨 뒤에 있다. 이 상태에서 이 줄을 한번에 `if`문으로 감싸는게 가능함.

```ruby
string_array.length > 1(cursor)
```

1. 맨 뒤(`post`) 에 다가 `.if` 붙이기

   ```ruby
   string_array.length > 1(cursor).if
   ```

### Completion with tab

`ctl + Space` 로는 자동완성된 단어가 `insert` 된다!! 만약 `insert`가 아니라 `replace`를 하고 싶다면?

1. `tab`을 이용하면 된다.
   * `ctl + Space`로 자동완성 목록이 뜨면 원하는 곳으로 이동 후 `tab`을 누르자.


---

# 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://simian114.gitbook.io/blog/undefined-1/odds_and_ends/ide/rubymine/3.-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.
