# 5. Code Assistance

### Code Format

> 한번에 코드를 정해진 포맷으로 바꿔준다.

1. `com + opt + L`
   * `end` 같은 키워드의 위치를 정해진 포맷에 맞게 수정해줌.
   * 블록을 세팅한 상태에서 입력하면 정해진 블록에서만, 블록이 없는 상태에서 하는 파일 전체에 대해서 동작한다.

### Parameter info

함수를 사용할 때 인자가 어떤게 들어가는지 생각이 잘 안날 때가 있다. 그럴 때 사용함.

1. `com + p`
   * 커서를 함수에 위치시키고 실행한다.

### Quick popups

1. `F1`
   * 설명을 해주는 팝업이 뜬다.
2. `opt + Space`
   * 함수의 구현창이 팝업으로 뜬다.
   * 매우 유용할 것으로 보임.
   * 입력소스가 영어 인 경우에만 동작한다. 주의.

### Editor coding assistance

1. `F2`
   * 에러가 발생하는 곳으로 커서를 이동시킨다.
2. `opt + Enter`
   * `Action`을 한다.
   * 예를 들면 인자가 들어가면 안되는 함수인데 인자가 들어가서 에러다, 그러면 `opt + Enter`를 입력하면 `Remove` 를 할 것인지에 대해 묻는다. 지우자.
3. `com + F1`
   * 왜 에러가 발생했는지를 가르쳐준다.
4. `com + shift F7`
   * 커서가 있는 모든 텍스트를 하이라이팅한다.


---

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