{"meta":{"title":"IDE에서 GitHub Copilot Chat에 대한 프롬프트 사용 시작하기","intro":"IDE에서 사용하는 Copilot Chat 방법에 대한 개요를 가져옵니다.","product":"GitHub Copilot","breadcrumbs":[{"href":"/ko/copilot","title":"GitHub Copilot"},{"href":"/ko/copilot/how-tos","title":"방법"},{"href":"/ko/copilot/how-tos/chat-with-copilot","title":"Copilot와의 채팅"},{"href":"/ko/copilot/how-tos/chat-with-copilot/get-started-with-chat-in-your-ide","title":"IDE에서 채팅 시작"}],"documentType":"article"},"body":"# IDE에서 GitHub Copilot Chat에 대한 프롬프트 사용 시작하기\n\nIDE에서 사용하는 Copilot Chat 방법에 대한 개요를 가져옵니다.\n\n프로젝트 또는 일반 소프트웨어 질문에 대한 구체적인 질문을 할 수 있습니다 Copilot Chat . 코드를 작성하고, 오류를 수정하고, 테스트를 작성하고, 문서 코드를 작성하도록 요청할 Copilot Chat 수도 있습니다.\n\n위의 탭을 사용하여 사용 Copilot Chat중인 환경을 선택합니다.\n\n<div class=\"ghd-tool vscode\">\n\n<a href=\"vscode://GitHub.Copilot-Chat?ref_product=copilot&ref_type=engagement&ref_style=button\" target=\"_blank\" class=\"btn btn-primary mt-3 mr-3 mb-3 no-underline\">\n<span>\nCopilot Chat를 Visual Studio Code에서 열기</span><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-link-external\" aria-label=\"link external icon\" role=\"img\"><path d=\"M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z\"></path></svg>\n</a>\n\n다음 예제 프롬프트 중 일부는 채팅 참가자(`@` 앞), 슬래시 명령(`/` 앞) 또는 채팅 변수(`#` 앞)를 사용합니다. 프롬프트의 키워드에 대한 자세한 내용은 [IDE에서 GitHub Copilot에 질문하기](/ko/copilot/how-tos/chat-with-copilot/chat-in-ide#using-keywords-in-your-prompt)을(를) 참조하세요.\n\n## 일반 소프트웨어 질문하기\n\nCopilot Chat 일반적인 소프트웨어 질문을 할 수 있습니다. 다음은 그 예입니다.\n\n* `tell me about nodejs web server frameworks`\n* `how can I create an Express app`\n* `@terminal how to update an npm package`\n\n## 프로젝트에 관한 질문하기.\n\n프로젝트에 대해 질문 Copilot Chat 할 수 있습니다.\n\n* `what sorting algorithm does this function use`\n* `@workspace how are notifications scheduled`\n* `#file:gameReducer.js #file:gameInit.js how are these files related`\n\n올바른 컨텍스트를 제공 Copilot 하려면 다음 전략 중 일부를 시도합니다.\n\n* 관련 코드 줄을 강조 표시합니다.\n* `#selection`, `#file`, `#editor`, `#codebase` 또는 `#git` 같은 채팅 변수를 사용합니다.\n* `@workspace` 채팅 참가자를 사용합니다.\n\n## 코드 작성\n\nCopilot에게 코드 작성을 요청할 수 있습니다. 다음은 그 예입니다.\n\n* `write a function to sum all numbers in a list`\n* `add error handling to this function`\n* `@workspace add form validation, similar to the newsletter page`\n\n코드 블록을 반환하는 경우 Copilot 응답에는 코드를 복사하거나 커서에서 코드를 새 파일 또는 터미널에 삽입하는 옵션이 포함됩니다.\n\n## GitHub Advanced Security 기능의 경고 알림에 대해 질문하기\n\nCopilot 기능(GitHub Advanced Security, code scanning, secret scanning)을 통해 조직 내 리포지토리의 보안 경고에 관해 Dependabot alerts에 문의할 수 있습니다. 다음은 그 예입니다.\n\n* `How would I fix this alert?`\n* `How many alerts do I have on this pull request?`\n* `Which line of code is this code scanning alert referencing?`\n* `What library is affected by this Dependabot alert?`\n\n## 새 프로젝트 설정\n\n`/new` 슬래시 명령을 사용하여 새 프로젝트를 설정합니다. 다음은 그 예입니다.\n\n* `/new react app with typescript`\n* `/new python django web application`\n* `/new node.js express server`\n\nCopilot 디렉터리 구조를 제안하고 제안된 파일 및 콘텐츠를 만드는 단추를 제공합니다. 제안된 파일을 미리 보려면 제안된 디렉터리 구조에서 파일 이름을 선택하세요.\n\n새 Jupyter notebook을 설정하려면 `/newNotebook` 슬래시 명령을 사용하세요. 다음은 그 예입니다.\n\n* `/newNotebook retrieve the titanic dataset and use Seaborn to plot the data`\n\n## 코드 수정, 개선 및 리팩터링\n\n현재 파일에 오류가 있는 경우 `/fix` 슬래시 명령을 사용하여 Copilot에게 오류를 해결하도록 요청하십시오.\n\n코드를 개선하거나 리팩터링하기 위해 일반적인 요청을 할 수도 있습니다.\n\n* `how would you improve this code?`\n* `translate this code to C#`\n* `add error handling to this function`\n\n## 테스트 작성\n\n`/tests` 슬래시 명령을 사용하여 활성 파일 또는 선택한 코드에 대한 테스트를 작성하도록 요청 Copilot 합니다. 다음은 그 예입니다.\n\n* `/tests`\n* `/tests using the Jest framework`\n* `/tests ensure the function rejects an empty list`\n\n`/tests` 슬래시 명령은 기존 코드에 대한 테스트를 작성합니다. 코드를 작성하기 전에 테스트를 작성하려는 경우(테스트 기반 개발) `/tests` 명령을 생략합니다. 다음은 그 예입니다.\n\n* `Add tests for a JavaScript function that should sum a list of integers`\n\n## 질문하기 Visual Studio Code\n\n`@vscode`을(를) 사용하는 채팅 참가자에게 Visual Studio Code에 대한 구체적인 질문을 할 수 있습니다. 다음은 그 예입니다.\n\n* `@vscode tell me how to debug a node.js app`\n* `@vscode how do I change my Visual Studio Code colors`\n* `@vscode how can I change key bindings`\n\n## 명령줄에 대한 질문하기\n\n`@terminal` 채팅 참가자를 사용하여 명령줄에 대한 특정 질문을 할 수 있습니다. 다음은 그 예입니다.\n\n* `@terminal find the largest file in the src directory`\n* 마지막 명령과 오류를 설명하는 `@terminal #terminalLastCommand`\n\n</div>\n\n<div class=\"ghd-tool visualstudio\">\n\n## 일반 소프트웨어 질문하기\n\nCopilot Chat 일반적인 소프트웨어 질문을 할 수 있습니다. 다음은 그 예입니다.\n\n* `tell me about nodejs web server frameworks`\n* `how can I create an Express app`\n* `what's the process for updating an npm package`\n\n## 프로젝트에 관한 질문하기.\n\n프로젝트에 대해 질문 Copilot Chat 할 수 있습니다. 올바른 컨텍스트를 제공 Copilot 하려면 다음 전략 중 일부를 시도합니다.\n\n* 관련 코드 줄을 강조 표시합니다.\n* 관련 파일을 엽니다.\n* `#file`을(를) 사용하여 Copilot이(가) 특정 파일을 참조하도록 지시합니다.\n* 활성 파일을 참조하도록 `#solution`에 지시하는 데 Copilot을 사용합니다.\n\n다음은 그 예입니다.\n\n* `what sorting algorithm does this function use`\n* `#file:gameReducer.js what happens when a new game is requested`\n\n## 코드 작성\n\nCopilot에게 코드 작성을 요청할 수 있습니다. 다음은 그 예입니다.\n\n* `write a function to sum all numbers in a list`\n* `add error handling to this function`\n\n코드 블록을 반환하는 경우 Copilot 응답에는 코드를 복사하거나, 새 파일에 코드를 삽입하거나, 코드 출력을 미리 보는 옵션이 포함됩니다.\n\n## GitHub Advanced Security 기능의 경고 알림에 대해 질문하기\n\nCopilot 기능(GitHub Advanced Security, code scanning, secret scanning)을 통해 조직 내 리포지토리의 보안 경고에 관해 Dependabot alerts에 문의할 수 있습니다. 다음은 그 예입니다.\n\n* `How would I fix this alert?`\n* `How many alerts do I have on this pull request?`\n* `Which line of code is this code scanning alert referencing?`\n* `What library is affected by this Dependabot alert?`\n\n## 코드 수정, 개선 및 리팩터링\n\n현재 파일에 오류가 있는 경우 `/fix` 슬래시 명령을 사용하여 Copilot에게 오류를 해결하도록 요청하십시오.\n\n코드를 개선하거나 리팩터링하기 위해 일반적인 요청을 할 수도 있습니다.\n\n* `how would you improve this code?`\n* `translate this code to C#`\n* `add error handling to this function`\n\n## 테스트 작성\n\n`/tests` 슬래시 명령을 사용하여 활성 파일 또는 선택한 코드에 대한 테스트를 작성하도록 요청 Copilot 합니다. 다음은 그 예입니다.\n\n* `/tests`\n* `/tests using the Jest framework`\n* `/tests ensure the function rejects an empty list`\n\n`/tests` 슬래시 명령은 기존 코드에 대한 테스트를 작성합니다. 코드를 작성하기 전에 테스트를 작성하려는 경우(테스트 기반 개발) `/tests` 명령을 생략합니다. 다음은 그 예입니다.\n\n* `Add tests for a JavaScript function that should sum a list of integers`\n\n</div>\n\n<div class=\"ghd-tool jetbrains\">\n\n## 일반 소프트웨어 질문하기\n\nCopilot Chat 일반적인 소프트웨어 질문을 할 수 있습니다. 다음은 그 예입니다.\n\n* `tell me about nodejs web server frameworks`\n* `how can I create an Express app`\n* `what's the process for updating an npm package`\n\n## 프로젝트에 관한 질문하기.\n\n프로젝트에 대해 질문 Copilot Chat 할 수 있습니다. 올바른 컨텍스트를 제공 Copilot 하려면 다음 전략 중 일부를 시도합니다.\n\n* 관련 코드 줄을 강조 표시합니다.\n* 관련 파일을 엽니다.\n* 파일을 참조로 추가합니다. 파일 참조 사용 방법에 대한 자세한 내용은 [IDE에서 GitHub Copilot에 질문하기](/ko/copilot/how-tos/chat-with-copilot/chat-in-ide?tool=jetbrains#file-references)을(를) 참조하세요.\n* `@project` 채팅 참가자를 사용합니다.\n\n다음은 그 예입니다.\n\n* `what sorting algorithm does this function use`\n* `how are these files related` (해당 파일에 대한 참조 포함)\n* `@project how are notifications scheduled`\n\n## 코드 작성\n\nCopilot에게 코드 작성을 요청할 수 있습니다. 다음은 그 예입니다.\n\n* `write a function to sum all numbers in a list`\n* `add error handling to this function`\n\n코드 블록을 반환하는 경우 Copilot 응답에는 코드를 복사하거나 커서에 코드를 삽입하는 옵션이 포함됩니다.\n\n## 코드 수정, 개선 및 리팩터링\n\n현재 파일에 오류가 있는 경우 `/fix` 슬래시 명령을 사용하여 Copilot에게 오류를 해결하도록 요청하십시오.\n\n코드를 개선하거나 리팩터링하기 위해 일반적인 요청을 할 수도 있습니다.\n\n* `how would you improve this code?`\n* `translate this code to C#`\n* `add error handling to this function`\n\n## 테스트 작성\n\n`/tests` 슬래시 명령을 사용하여 활성 파일 또는 선택한 코드에 대한 테스트를 작성하도록 요청 Copilot 합니다. 다음은 그 예입니다.\n\n* `/tests`\n* `/tests using the Jest framework`\n* `/tests ensure the function rejects an empty list`\n\n`/tests` 슬래시 명령은 기존 코드에 대한 테스트를 작성합니다. 코드를 작성하기 전에 테스트를 작성하려는 경우(테스트 기반 개발) `/tests` 명령을 생략합니다. 다음은 그 예입니다.\n\n* `Add tests for a JavaScript function that should sum a list of integers`\n\n</div>\n\n<div class=\"ghd-tool eclipse\">\n\n## 일반 소프트웨어 질문하기\n\nCopilot Chat 일반적인 소프트웨어 질문을 할 수 있습니다. 다음은 그 예입니다.\n\n* `tell me about nodejs web server frameworks`\n* `how can I create an Express app`\n* `what's the process for updating an npm package`\n\n## 프로젝트 파일에 대해 질문하기\n\n현재 편집기에서 표시되는 파일에 대해 Copilot Chat 질문하거나 Copilot Chat 패널에서 대화에 첨부한 파일에 대해 질문할 수 있습니다. 올바른 컨텍스트를 제공 Copilot 하려면 다음을 수행합니다.\n\n* 편집기에서 관련 파일을 엽니다.\n* 패널에서 클립 아이콘을 Copilot Chat 클릭한 다음 대화에 첨부할 파일을 검색하여 선택합니다.\n\n다음은 그 예입니다.\n\n* `how can I make this file run faster`\n* `how are these files related`(첨부 파일 2개 이상 포함)\n* `explain the getSearchReplaceRules function`\n\n## 코드 작성\n\nCopilot에게 코드 작성을 요청할 수 있습니다. 다음은 그 예입니다.\n\n* `write a TypeScript function to sum all numbers in a list`\n* `using the comments in this file, create appropriate Node JavaScript`\n\n코드 블록을 반환하는 경우 Copilot 응답에는 코드를 복사하는 옵션이 포함됩니다.\n\n## 코드 수정, 개선 및 리팩터링\n\n현재 파일에 오류가 있는 경우 `/fix` 슬래시 명령을 사용하여 Copilot에게 오류를 해결하도록 요청하십시오.\n\n코드를 개선하거나 리팩터링하기 위해 일반적인 요청을 할 수도 있습니다.\n\n* `how would you improve the code in this file`\n* `translate this code to C#`\n* `add error handling to the main function`\n\n## 테스트 작성\n\n`/tests` 슬래시 명령을 사용하여 활성 파일 또는 선택한 코드에 대한 테스트를 작성하도록 요청 Copilot 합니다. 다음은 그 예입니다.\n\n* `/tests`\n* `/tests using the Jest framework`\n* `/tests ensure the function rejects an empty list`\n\n`/tests` 슬래시 명령은 기존 코드에 대한 테스트를 작성합니다. 코드를 작성하기 전에 테스트를 작성하려는 경우(테스트 기반 개발) `/tests` 명령을 생략합니다. 다음은 그 예입니다.\n\n* `Add tests for a JavaScript function that should sum a list of integers`\n\n</div>"}