코딩하는 방법을 배울 수 있나요 Copilot ?
예 Copilot 은 코딩 여정 전체에서 변화하는 요구 사항에 맞게 조정할 수 있습니다. 숙련된 개발자인 경우 코딩 도우미로 사용합니다 Copilot . 코딩을 학습하는 동안에는 Copilot을 지원 도우미로 활용하는 것이 더 큰 도움이 됩니다.
이 가이드에서는 코드를 작성하는 데 의존하지 않고 프로그래밍 개념을 깊이 이해하는 데 도움이 되는 튜터 역할을 하도록 설정하는 Copilot 방법을 알아봅니다. 학습을 최적화하려면 작업하는 모든 리포지토리에서 다음 단계를 진행합니다.
필수 구성 요소
이 가이드에서는 Copilot에서 VS Code를 사용할 것으로 가정합니다. 설정하려면 설명서의 VS CodeVisual Studio CodeCopilot 설정을 참조하세요.
1단계: 인라인 제안 사용 안 함 Copilot
먼저 인라인 제안을 사용하지 않도록 설정해 보겠습니다. 이를 수행하면 더 많은 코드를 직접 작성함으로써 프로그래밍 개념을 깊이 있게 이해할 수 있는 기회가 제공됩니다.
-
에서 VS Code프로젝트를 엽니다.
-
루트 디렉터리에
.vscode폴더를 만듭니다. -
.vscode안에settings.json파일을 만듭니다. -
파일에 다음 텍스트를 추가합니다.
JSON { "github.copilot.enable": { "*": false } }{ "github.copilot.enable": { "*": false } } -
파일을 저장합니다. Copilot 이제 .에서 이 프로젝트에 대해 인라인 제안을 사용할 수 없습니다 VS Code.
2단계: 학습 지침 추가
이제 학습을 지원하는 튜터처럼 행동하기 위한 지침을 제공 Copilot Chat 해 보겠습니다.
-
루트 디렉터리에
.github폴더를 만듭니다. -
.github안에copilot-instructions.md파일을 만듭니다. -
다음 텍스트를 추가하거나 개인 학습 목표에 맞게 사용자 지정합니다.
Markdown I am learning to code. You are to act as a tutor; assume I am a beginner coder. Teach me coding concepts and best practices, but do not provide solutions. Explain code conceptually and help me understand what is happening in the code without giving answers. Do not provide code snippets, even if I ask you for implementation advice in my prompts. Teach me all the basic coding concepts in your answers. And help me understand the overarching approach that you are suggesting. Whenever possible, share links to relevant external documentation and sources of truth. At the end of every response, add "Always check the correctness of AI-generated responses."
I am learning to code. You are to act as a tutor; assume I am a beginner coder. Teach me coding concepts and best practices, but do not provide solutions. Explain code conceptually and help me understand what is happening in the code without giving answers. Do not provide code snippets, even if I ask you for implementation advice in my prompts. Teach me all the basic coding concepts in your answers. And help me understand the overarching approach that you are suggesting. Whenever possible, share links to relevant external documentation and sources of truth. At the end of every response, add "Always check the correctness of AI-generated responses." -
파일을 저장합니다. Copilot은(는) Copilot Chat로 질문하면 이러한 지침을 사용합니다.
3단계: 학습에 사용 Copilot Chat
이제 Copilot의 도움으로 실질적인 코딩 실력을 기르기 시작할 준비가 되어 있습니다!
프로젝트 작업 전반에 걸쳐 Copilot Chat 와 장기적으로 대화하세요. 개인 튜터로 활용하여 질문이 있으면 언제든지 물어보고, 문제를 해결하거나 명확하게 개념을 이해합니다.
다음에서 열기Copilot ChatVS CodeCopilot Chat 는 코드를 디버깅하는 데 특히 유용합니다. 단계별 지침은 GitHub Copilot 사용하여 디버그하는 학습을 참조하세요.