Copilot์ ํตํด ์ฝ๋ฉ์ ๋ฐฐ์ธ ์ ์๋์?
์! Copilot์ ์ฝ๋ฉ ๊ณผ์ ์ ๋ฐ์ ๊ฑธ์ณ ๋ณํํ๋ ์๊ตฌ ์ฌํญ์ ๋ง๊ฒ ์กฐ์ ํ ์ ์์ต๋๋ค. ์๋ จ๋ ๊ฐ๋ฐ์๋ผ๋ฉด Copilot์ ์ฝ๋ฉ ๋์ฐ๋ฏธ๋ก ํ์ฉํ๊ฒ ๋ ๊ฒ์ ๋๋ค. ์ฝ๋ฉ์ ๋ฐฐ์ฐ๋ ๋์์๋ Copilot์ ์ง์ ๋์ฐ๋ฏธ๋ก ํ์ฉํ๋ ๊ฒ์ด ๋์ฑ ์ ์ตํฉ๋๋ค.
์ด ๊ฐ์ด๋์์๋ Copilot์ ๋จ์ง ์ฝ๋๋ฅผ ์์ฑํ๋ ๋๊ตฌ๋ก๋ง ์ฌ์ฉํ์ง ์๊ณ ํ๋ก๊ทธ๋๋ฐ ๊ฐ๋ ์ ๊น์ด ์ดํดํ๋ ๋ฐ ๋์์ด ๋๋ ํํฐ ์ญํ ์ ํ๋๋ก ์ค์ ํ๋ ๋ฐฉ๋ฒ์ ์์๋ด ๋๋ค. ํ์ต์ ์ต์ ํํ๋ ค๋ฉด ์์ ํ๋ ๊ฐ ๋ฆฌํฌ์งํ ๋ฆฌ์ ๋ค์ ๋จ๊ณ๋ฅผ ์ ์ฉํฉ๋๋ค.
ํ์ ์กฐ๊ฑด
์ด ๊ฐ์ด๋์์๋ VS Code์์ Copilot์ ์ฌ์ฉํ๋ค๊ณ ๊ฐ์ ํฉ๋๋ค. ์ค์ ํ๋ ค๋ฉด Visual Studio Code ์ค๋ช ์์ VS Code์์ Copilot ์ค์ ์ ์ฐธ์กฐํ์ธ์.
1๋จ๊ณ: ์ฝ๋ ์์ฑ ์ฌ์ฉ ์ ํจ
๋จผ์ , ์ฝ๋ ์์ฑ์ ์ฌ์ฉํ์ง ์๋๋ก ์ค์ ํด ๋ณด๊ฒ ์ต๋๋ค. ์ด๋ ๊ฒ ํ๋ฉด ๋ ๋ง์ ์ฝ๋๋ฅผ ์ง์ ์์ฑํ์ฌ ํ๋ก๊ทธ๋๋ฐ ๊ฐ๋ ์ ๋ํ ์ดํด๋ฅผ ๋์ผ ์ ์์ต๋๋ค.
-
VS Code์์ ํ๋ก์ ํธ๋ฅผ ์ฝ๋๋ค.
-
๋ฃจํธ ๋๋ ํฐ๋ฆฌ์
.vscode
๋ผ๋ ํด๋๋ฅผ ๋ง๋ญ๋๋ค. -
.vscode
๋ด๋ถ์settings.json
์ด๋ผ๋ ํ์ผ์ ๋ง๋ญ๋๋ค. -
ํ์ผ์ ๋ค์ ํ ์คํธ๋ฅผ ์ถ๊ฐํฉ๋๋ค.
JSON { "github.copilot.enable": { "*": false } }
{ "github.copilot.enable": { "*": false } }
-
ํ์ผ์ ์ ์ฅํฉ๋๋ค. ์ด์ VS Code์์ ์ด ํ๋ก์ ํธ์ Copilot ์ฝ๋ ์์ฑ์ด ๋นํ์ฑํ๋์์ต๋๋ค.
2๋จ๊ณ: ํ์ต ์ง์นจ ์ถ๊ฐ
์ด์ ํ์ต์ ์ง์ํ๋ ํํฐ ์ญํ ์ ์ํํ๋๋ก Copilot Chat์๊ฒ ์ง์นจ์ ์ ๊ณตํด ๋ณด๊ฒ ์ต๋๋ค.
-
ํ๋ก์ ํธ์ ๋ฃจํธ ํด๋์์
copilot-instructions.md
๋ผ๋ ํ์ผ์ ๋ง๋ญ๋๋ค. -
๋ค์ ํ ์คํธ๋ฅผ ์ถ๊ฐํ๊ฑฐ๋ ๊ฐ์ธ ํ์ต ๋ชฉํ์ ๋ง๊ฒ ์ฌ์ฉ์ ์ง์ ํฉ๋๋ค.
Markdown I am learning to code. You are to act as a tutor; assume I am a beginning 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 beginning 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 Chat์ ํ์ฉํ์ฌ ๊ถ๊ธํ ์ ์ด ์๊ธฐ๋ฉด ์ง๋ฌธํ๊ณ , ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ฑฐ๋ ๊ฐ๋ ์ ๋ช ํํ ์ดํดํ์ธ์.
VS Code์์ Copilot Chat ์ด๊ธฐ
Copilot Chat์ ํนํ ์ฝ๋๋ฅผ ๋๋ฒ๊น ํ๋ ์์ ์ ์ ์ฉํฉ๋๋ค. ๋จ๊ณ๋ณ ์ง์นจ์ GitHub Copilot์ ์ฌ์ฉํ์ฌ ๋๋ฒ๊ทธํ๋ ๋ฐฉ๋ฒ ํ์ต์(๋ฅผ) ์ฐธ์กฐํ์ธ์.