์๊ฐ
Copilot์ ์ฌ์ฉํ์ฌ ์ฝ๋ฉํ๋ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ, ๋ฒ๊ทธ ์์ ๋ฐฉ๋ฒ, ๋ค๋ฅธ ์ฌ๋์ ์ฝ๋๊ฐ ์ด๋ป๊ฒ ์๋ํ๋์ง ๋ฑ ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ๋ํ ๋ต๋ณ์ ์ป์ ์ ์์ต๋๋ค. Copilot์์ ์ํํ ์ ์๋ ์์ ์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot์ด๋?์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
Copilot ์ฌ์ฉ ์ง์นจ์ ์ฌ์ฉํ๋ ค๋ ํ๊ฒฝ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค. ์ด ๋น ๋ฅธ ์์ ๋ฒ์ ์ GitHub์ ๋ํ ๊ฒ์ ๋๋ค. ๋ค๋ฅธ ํ๊ฒฝ์์ Copilot์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ง์นจ์ ์์ ํญ์ ํด๋ฆญํฉ๋๋ค.
GitHub Copilot ๊ฐ์
Copilot์ ์ฌ์ฉํ๋ ค๋ฉด Copilot ํ๋์ ์ก์ธ์คํ ์ ์๋ ๊ฐ์ธ GitHub ๊ณ์ ์ด ํ์ํฉ๋๋ค. ๋ค์์ด ๊ฐ๋ฅํฉ๋๋ค.
- ํ๋์ ๊ฐ์ ํ์ง ์๊ณ ์ ํ๋ ๊ธฐ๋ฅ์ ํ์ํ๋ ค๋ฉด Copilot Free๋ก ์์ํ์ธ์.
- Copilot Pro ๋๋ Copilot Pro(ํ๋ก)+๋ก ์ ๊ทธ๋ ์ด๋ํ๋ฉด ๋ ๋ง์ ๊ธฐ๋ฅ, ๋ชจ๋ธ, ์์ฒญ ํ๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
GitHub Copilot์ ๋ค์ํ ํ๋์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot ํ๋์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
์ฒซ ๋ฒ์งธ ์ง๋ฌธํ๊ธฐ
-
GitHub์์ ๋ฆฌํฌ์งํ ๋ฆฌ๋ก ์ด๋ํ์ฌ ํ์ผ์ ์ฝ๋๋ค.
-
ํ์ผ ๋ณด๊ธฐ์ ์ค๋ฅธ์ชฝ ์์ ์๋ Copilot ์์ด์ฝ()์ ํด๋ฆญํฉ๋๋ค.
-
์ฑํ ํจ๋ ํ๋จ์ "Copilot์ ์ง๋ฌธํ๊ธฐ" ์์์ ์ง๋ฌธ์ ์ ๋ ฅํ๊ณ Enter ํค๋ฅผ ๋๋ฆ ๋๋ค.
์๋ฅผ ๋ค์ด ๋ค์๊ณผ ๊ฐ์ด ์ ๋ ฅํ ์ ์์ต๋๋ค.
- ์ด ํ์ผ์ ์ค๋ช ํด ์ฃผ์ธ์.
- ์ด ์ฝ๋๋ฅผ ๊ฐ์ ํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ๋์?
- ์ด ์ฝ๋๋ฅผ ํ ์คํธํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ๋์?
Copilot์ด(๊ฐ) ํจ๋์ ์์ฒญ์ ์๋ตํฉ๋๋ค.
-
ํ์ ์ง๋ฌธ์ ํ์ฌ ๋ํ๋ฅผ ๊ณ์ํ ์ ์์ต๋๋ค. ์๋ฅผ ๋ค์ด "์์ธํ ์๋ ค์ฃผ์ธ์"๋ฅผ ์ ๋ ฅํ๋ฉด Copilot์ด(๊ฐ) ๋ง์ง๋ง ์ค๋ช ์ ํ์ฅํฉ๋๋ค.
๋ฌธ์ํ ์ ์๋ ๊ธฐํ ์ง๋ฌธ
GitHub์ GitHub Copilot ์ฑํ ๋ฅผ ์ฌ์ฉํ์ฌ ๋ ๋ง์ ์์ ์ ์ํํ ์ ์์ต๋๋ค. ์์:
- ์ํํธ์จ์ด ๊ฐ๋ฐ์ ๋ํ ์ผ๋ฐ์ ์ธ ์ง๋ฌธ
- ๋ฆฌํฌ์งํ ๋ฆฌ์ ๋ํ ํ์์ ์ง๋ฌธ
- ์ง์ ๊ธฐ๋ฐ์ ๋ํ ์ง๋ฌธ
- ๋น๊ฒจ๋ฐ๊ธฐ ์์ฒญ์ ๋ณ๊ฒฝ ๋ด์ฉ ํ์ธ
- ํน์ ์ด์ ๋๋ ์ปค๋ฐ์ ๋ํ ์ง๋ฌธ
์์ธํ ๋ด์ฉ์ Asking GitHub Copilot questions in GitHub์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
๋ค์ ๋จ๊ณ
- **GitHub Copilot ์ฑํ ์ ๋ํด ์์ธํ ์์๋ณด๋ ค๋ฉด **Asking GitHub Copilot questions in your IDE.
- IDE์์ Copilot ์ฝ๋ ์๋ฃ ์ ์ ๊ฐ์ ธ์ค๊ธฐ - Getting code suggestions in your IDE with GitHub Copilot์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ํจ๊ณผ์ ์ผ๋ก ํ๋กฌํํธ๋ฅผ ์์ฑํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ - Prompt engineering for GitHub Copilot Chat์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ชจ๋ฐ์ผ ๋๋ฐ์ด์ค์์ Copilot ์ฌ์ฉ - Asking GitHub Copilot questions in GitHub Mobile์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ช ๋ น์ค์์ Copilot ์ฌ์ฉ - ๋ช ๋ น์ค์์ GitHub Copilot ์ฌ์ฉํ๊ธฐ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
GitHub Copilot์ ์๋ํฐ์ ์ ๋ ฅํ ๋ ์ฝ๋ฉ ์ ์์ ์ ๊ณตํฉ๋๋ค. ๋ํ ์ฝ๋ฉํ๋ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ, ๋ฒ๊ทธ ์์ ๋ฐฉ๋ฒ, ๋ค๋ฅธ ์ฌ๋์ ์ฝ๋๊ฐ ์๋ํ๋ ๋ฐฉ๋ฒ ๋ฑ Copilot ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ํ ์๋ ์์ต๋๋ค. Copilot์์ ์ํํ ์ ์๋ ์์ ์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot์ด๋?์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
Copilot ์ฌ์ฉ ์ง์นจ์ ์ฌ์ฉํ๋ ค๋ ํ๊ฒฝ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค. ์ด ๋น ๋ฅธ ์์ ๋ฒ์ ์ Windows Terminal์ ๋ํ ๊ฒ์ ๋๋ค. ๋ค๋ฅธ ํ๊ฒฝ์์ Copilot์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ง์นจ์ ์์ ํญ์ ํด๋ฆญํฉ๋๋ค.
GitHub Copilot ๊ฐ์
Copilot์ ์ฌ์ฉํ๋ ค๋ฉด Copilot ํ๋์ ์ก์ธ์คํ ์ ์๋ ๊ฐ์ธ GitHub ๊ณ์ ์ด ํ์ํฉ๋๋ค. ๋ค์์ด ๊ฐ๋ฅํฉ๋๋ค.
- ํ๋์ ๊ฐ์ ํ์ง ์๊ณ ์ ํ๋ ๊ธฐ๋ฅ์ ํ์ํ๋ ค๋ฉด Copilot Free๋ก ์์ํ์ธ์.
- Copilot Pro ๋๋ Copilot Pro(ํ๋ก)+๋ก ์ ๊ทธ๋ ์ด๋ํ๋ฉด ๋ ๋ง์ ๊ธฐ๋ฅ, ๋ชจ๋ธ, ์์ฒญ ํ๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
GitHub Copilot์ ๋ค์ํ ํ๋์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot ํ๋์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
ํ์ ์กฐ๊ฑด
- Windows Terminal Canary. ํฐ๋ฏธ๋ ์ฑํ ์ Windows Terminal Canary์์๋ง ์ฌ์ฉํ ์ ์์ต๋๋ค.
ํฐ๋ฏธ๋ ์ฑํ ์์ Copilot ์ฌ์ฉ
Windows Terminal Canary๋ฅผ ์ค์นํ ํ ํฐ๋ฏธ๋ ์ฑํ ์์ Copilot์ ์ฌ์ฉํ์ฌ ๋ช ๋ น์ค ๊ด๋ จ ์ง๋ฌธ์ ํ ์ ์์ต๋๋ค.
-
๋๋กญ๋ค์ด ๋ฉ๋ด์์ Settings๋ฅผ ์ฝ๋๋ค.
-
ํฐ๋ฏธ๋ ์ฑํ (์คํ์ ) ์ค์ ์ผ๋ก ์ด๋ํฉ๋๋ค.
-
Service Providers ์๋์์ GitHub Copilot ๋ฐ Authenticate via GitHub๋ฅผ ์ ํํ์ฌ ๋ก๊ทธ์ธํ์ธ์.
GitHub Copilot์ ์ฑํ
์ฐธ๊ณ ํญ๋ชฉ
์กฐ์ง์์ GitHub Copilot์ ์ก์ธ์คํ ์ ์๋ ๊ฒฝ์ฐ, ์กฐ์ง ์์ ์๊ฐ CLI์ GitHub Copilot๋ฅผ ๋นํ์ฑํํ๋ฉด Windows Terminal์์ GitHub Copilot์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์กฐ์ง์์ Copilot Business์ ๋ํ ์ ์ฑ ๊ณผ ๊ธฐ๋ฅ ๊ด๋ฆฌํ๊ธฐ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
-
๋๋กญ๋ค์ด ๋ฉ๋ด์์ ํฐ๋ฏธ๋ ์ฑํ (์คํ์ ) ์ ์ฝ๋๋ค.
-
ํฐ๋ฏธ๋ ์ฑํ ์ ์ฑํ ์ฐฝ์์
how do i list all markdown files in my directory
๋ฅผ ์ ๋ ฅํ ๋ค์, Enter ํค๋ฅผ ๋๋ฆ ๋๋ค.Copilot์ ๋ต๋ณ์ด ์ง๋ฌธ ์๋์ ํ์๋ฉ๋๋ค.
-
๋ต๋ณ์ ํด๋ฆญํ์ฌ ๋ช ๋ น์ค์ ์ฝ์ ํ์ธ์.
๋ค์ ๋จ๊ณ
- Copilot ์ฝ๋ ์์ฑ ์์ธํ ์์๋ณด๊ธฐ - Getting code suggestions in your IDE with GitHub Copilot์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- **GitHub Copilot ์ฑํ ์ ๋ํด ์์ธํ ์์๋ณด๋ ค๋ฉด **Asking GitHub Copilot questions in your IDE.
- ํจ๊ณผ์ ์ผ๋ก ํ๋กฌํํธ๋ฅผ ์์ฑํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ - Prompt engineering for GitHub Copilot Chat์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ชจ๋ฐ์ผ ๋๋ฐ์ด์ค์์ Copilot ์ฌ์ฉ - Asking GitHub Copilot questions in GitHub Mobile์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ช ๋ น์ค์์ Copilot ์ฌ์ฉ - CLI์ GitHub Copilot ์ฌ์ฉ์ ์ง์ ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ํธ์ง๊ธฐ์์ Copilot ๊ตฌ์ฑ - ํธ์ง๊ธฐ ๋ด์์ GitHub Copilot์(๋ฅผ) ํ์ฑํ ๋๋ ๋นํ์ฑํํ๊ณ ์ ๋ํด ์ ํธํ๋ ๋ฐ๋ก ๊ฐ๊ธฐ ํค๋ฅผ ์ง์ ๋ง๋ค ์ ์์ต๋๋ค. Configuring GitHub Copilot in your environment์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
GitHub Copilot์ ์๋ํฐ์ ์ ๋ ฅํ ๋ ์ฝ๋ฉ ์ ์์ ์ ๊ณตํฉ๋๋ค. ๋ํ ์ฝ๋ฉํ๋ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ, ๋ฒ๊ทธ ์์ ๋ฐฉ๋ฒ, ๋ค๋ฅธ ์ฌ๋์ ์ฝ๋๊ฐ ์๋ํ๋ ๋ฐฉ๋ฒ ๋ฑ Copilot ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ํ ์๋ ์์ต๋๋ค. Copilot์์ ์ํํ ์ ์๋ ์์ ์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot์ด๋?์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
Copilot ์ฌ์ฉ ์ง์นจ์ ์ฌ์ฉํ๋ ค๋ ํ๊ฒฝ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค. ์ด ๋น ๋ฅธ ์์ ๋ฒ์ ์ Visual Studio Code์ฉ์ ๋๋ค. ๋ค๋ฅธ ํ๊ฒฝ์์ Copilot์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ง์นจ์ ์์ ํญ์ ํด๋ฆญํฉ๋๋ค.
GitHub Copilot ๊ฐ์
Copilot์ ์ฌ์ฉํ๋ ค๋ฉด Copilot ํ๋์ ์ก์ธ์คํ ์ ์๋ ๊ฐ์ธ GitHub ๊ณ์ ์ด ํ์ํฉ๋๋ค. ๋ค์์ด ๊ฐ๋ฅํฉ๋๋ค.
- ํ๋์ ๊ฐ์ ํ์ง ์๊ณ ์ ํ๋ ๊ธฐ๋ฅ์ ํ์ํ๋ ค๋ฉด Copilot Free๋ก ์์ํ์ธ์.
- Copilot Pro ๋๋ Copilot Pro(ํ๋ก)+๋ก ์ ๊ทธ๋ ์ด๋ํ๋ฉด ๋ ๋ง์ ๊ธฐ๋ฅ, ๋ชจ๋ธ, ์์ฒญ ํ๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
GitHub Copilot์ ๋ค์ํ ํ๋์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot ํ๋์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
ํ์ ์กฐ๊ฑด
- Visual Studio Code์ ์ต์ ๋ฒ์ ์ ๋๋ค. Visual Studio Code ๋ค์ด๋ก๋ ํ์ด์ง๋ฅผ ์ฐธ์กฐํ์ธ์.
- Visual Studio Code์ GitHub์ ๋ก๊ทธ์ธํฉ๋๋ค. ์ธ์ฆ์ ๋ฌธ์ ๊ฐ ์๋ ๊ฒฝ์ฐ GitHub Copilot์ ์ผ๋ฐ์ ์ธ ๋ฌธ์ ํด๊ฒฐํ๊ธฐ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
GitHub Copilot์ ์ฑํ
GitHub Copilot ํ์ฅ์ ์ค์นํ ํ Copilot ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ํ ์ ์์ต๋๋ค.
์ฐธ๊ณ ํญ๋ชฉ
์กฐ์ง์์ GitHub Copilot์ ์ก์ธ์คํ ์ ์๋ ๊ฒฝ์ฐ ์กฐ์ง ์์ ์๊ฐ ์ฑํ ์ ์ฌ์ฉํ์ง ์๋๋ก ์ค์ ํ ๊ฒฝ์ฐ GitHub Copilot ์ฑํ ์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์กฐ์ง์์ Copilot Business์ ๋ํ ์ ์ฑ ๊ณผ ๊ธฐ๋ฅ ๊ด๋ฆฌํ๊ธฐ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
-
๊ธฐ์กด ์ฝ๋ ํ์ผ์ ์ฝ๋๋ค.
-
์์ ๋ชจ์์์ ์ฑํ ๋ณด๊ธฐ๋ฅผ ์ฝ๋๋ค.
-
์ฑํ ๋ณด๊ธฐ ์๋์ชฝ์ ์ฑํ ์ ๋ ฅ ํ๋์
explain this file
์ ์ ๋ ฅํฉ๋๋ค. -
Enter ํค๋ฅผ ๋๋ฆ ๋๋ค.
Copilot์ด(๊ฐ) ์ฑํ ๋ณด๊ธฐ์ ์๋ตํฉ๋๋ค.
-
ํธ์ง๊ธฐ์์ ์ฃผ์์ ๋ฌ์ง ์์ ์ฝ๋ ์ค์ ํ๋ ์ด์ ์ ํํฉ๋๋ค.
-
์ฑํ ์ ๋ ฅ ํ๋์
add comments to these lines
์ ์ ๋ ฅํฉ๋๋ค. -
Copilot์์ ์ ์ํ๋ ์ฃผ์์ด ๋ง์์ ๋ค๋ฉด ์ฑํ ๋ณด๊ธฐ์์ ์ ์๋ ์ฝ๋๋ฅผ ๋ง์ฐ์ค๋ก ๊ฐ๋ฆฌํค๊ณ "์ปค์์ ์ฝ์ " ์์ด์ฝ์ ํด๋ฆญํ์ฌ ์ ํํ ์ค์ ์ ์๋ ์ฝ๋๋ก ๋ฐ๊ฟ๋๋ค.
์ฒซ ๋ฒ์งธ ์ฝ๋ ์๋ฃ ์ ์ ๊ฐ์ ธ์ค๊ธฐ
๋ค์ ์์์์๋ JavaScript๋ฅผ ์ฌ์ฉํ์ง๋ง ๋ค๋ฅธ ์ธ์ด๋ ๋น์ทํ๊ฒ ์๋ํฉ๋๋ค. GitHub Copilot์ ๋ค์ํ ์ธ์ด์ ๊ด๋ฒ์ํ ํ๋ ์์ํฌ์ ๋ํ ์ ์์ ์ ๊ณตํ์ง๋ง Python, JavaScript, TypeScript, Ruby, Go, C# ๋ฐ C++์์ ํนํ ์ ์๋ํฉ๋๋ค. GitHub Copilot์(๋) ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ์ฟผ๋ฆฌ ์์ฑ, API ๋ฐ ํ๋ ์์ํฌ์ ๋ํ ์ ์ ์์ฑ์ ์ง์ํ๋ฉฐ ์ฝ๋ ๊ฐ๋ฐ๋ก์์ ์ธํ๋ผ์ ๋์์ด ๋ ์ ์์ต๋๋ค.
-
Visual Studio Code๋ฅผ ์ฝ๋๋ค.
-
Visual Studio Code์์ ์ JavaScript(*.js) ํ์ผ์ ๋ง๋ญ๋๋ค.
-
JavaScript ํ์ผ์ ๋ค์ ํจ์ ํค๋๋ฅผ ์ ๋ ฅํฉ๋๋ค.
JavaScript function calculateDaysBetweenDates(begin, end) {
function calculateDaysBetweenDates(begin, end) {
GitHub Copilot์ ์๋์ผ๋ก ์ ์ฒด ํจ์ ๋ณธ๋ฌธ์ ํ์ ํ ์คํธ๋ก ์ ์ํฉ๋๋ค. ์ ํํ ์ ์์ ๋ค๋ฅผ ์ ์์ต๋๋ค.
- ์ ์์ ์๋ฝํ๋ ค๋ฉด Tab ํค๋ฅผ ๋๋ฆ ๋๋ค.
๋ค์ ๋จ๊ณ
- Copilot ์ฝ๋ ์์ฑ ์์ธํ ์์๋ณด๊ธฐ - Getting code suggestions in your IDE with GitHub Copilot์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- **GitHub Copilot ์ฑํ ์ ๋ํด ์์ธํ ์์๋ณด๋ ค๋ฉด **Asking GitHub Copilot questions in your IDE.
- ํจ๊ณผ์ ์ผ๋ก ํ๋กฌํํธ๋ฅผ ์์ฑํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ - Prompt engineering for GitHub Copilot Chat์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ์ ๋ฌธ๊ฐ์ฒ๋ผ Copilot ์ฌ์ฉ - GitHub Copilot์(๋ฅผ) ์ํ ํจ๊ณผ์ ์ธ ํ๋กฌํํธ ์์ฑ ๋ฐฉ๋ฒ์ ์์๋ด ๋๋ค. ์์ธํ ๋ด์ฉ์ Visual Studio Code ๋ฌธ์์ VS Code์์ GitHub Copilot ์ฌ์ฉ ๋ชจ๋ฒ ์ฌ๋ก๋ฅผ ์ฐธ์กฐํ์ธ์.
- ๋ค์ ํธ์ง ์ ์์ ๋ํด ์์๋ณด๊ธฐ - ๋ค์ ํธ์ง ์ ์ ์ ๋ณด๋ฅผ ์ฐธ์กฐํ์ธ์.
- ๋ชจ๋ฐ์ผ ๋๋ฐ์ด์ค์์ Copilot ์ฌ์ฉ - Asking GitHub Copilot questions in GitHub Mobile์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ช ๋ น์ค์์ Copilot ์ฌ์ฉ - CLI์ GitHub Copilot ์ฌ์ฉ์ ์ง์ ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ํธ์ง๊ธฐ์์ Copilot ๊ตฌ์ฑ - ํธ์ง๊ธฐ ๋ด์์ GitHub Copilot์(๋ฅผ) ํ์ฑํ ๋๋ ๋นํ์ฑํํ๊ณ ์ ๋ํด ์ ํธํ๋ ๋ฐ๋ก ๊ฐ๊ธฐ ํค๋ฅผ ์ง์ ๋ง๋ค ์ ์์ต๋๋ค. Configuring GitHub Copilot in your environment์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
GitHub Copilot์ ์๋ํฐ์ ์ ๋ ฅํ ๋ ์ฝ๋ฉ ์ ์์ ์ ๊ณตํฉ๋๋ค. ๋ํ ์ฝ๋ฉํ๋ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ, ๋ฒ๊ทธ ์์ ๋ฐฉ๋ฒ, ๋ค๋ฅธ ์ฌ๋์ ์ฝ๋๊ฐ ์๋ํ๋ ๋ฐฉ๋ฒ ๋ฑ Copilot ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ํ ์๋ ์์ต๋๋ค. Copilot์์ ์ํํ ์ ์๋ ์์ ์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot์ด๋?์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
Copilot ์ฌ์ฉ ์ง์นจ์ ์ฌ์ฉํ๋ ค๋ ํ๊ฒฝ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค. ์ด ๋น ๋ฅธ ์์ ๋ฒ์ ์ Visual Studio์ ๋ํ ๊ฒ์ ๋๋ค. ๋ค๋ฅธ ํ๊ฒฝ์์ Copilot์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ง์นจ์ ์์ ํญ์ ํด๋ฆญํฉ๋๋ค.
GitHub Copilot ๊ฐ์
Copilot์ ์ฌ์ฉํ๋ ค๋ฉด Copilot ํ๋์ ์ก์ธ์คํ ์ ์๋ ๊ฐ์ธ GitHub ๊ณ์ ์ด ํ์ํฉ๋๋ค. ๋ค์์ด ๊ฐ๋ฅํฉ๋๋ค.
- ํ๋์ ๊ฐ์ ํ์ง ์๊ณ ์ ํ๋ ๊ธฐ๋ฅ์ ํ์ํ๋ ค๋ฉด Copilot Free๋ก ์์ํ์ธ์.
- Copilot Pro ๋๋ Copilot Pro(ํ๋ก)+๋ก ์ ๊ทธ๋ ์ด๋ํ๋ฉด ๋ ๋ง์ ๊ธฐ๋ฅ, ๋ชจ๋ธ, ์์ฒญ ํ๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
GitHub Copilot์ ๋ค์ํ ํ๋์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot ํ๋์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
ํ์ ์กฐ๊ฑด
- Visual Studio์ ํธํ ๋ฒ์ . Visual Studio์์ ์(๋ฅผ) ์ฌ์ฉํ๋ ค๋ฉด Windows์ฉ Visual Studio ๋ฒ์ 2022 17.8 ์ด์์ด ์ค์น๋์ด ์์ด์ผ ํฉ๋๋ค. ์์ธํ ๋ด์ฉ์ Microsoft ์ค๋ช ์์์ Visual Studio ์ค์น๋ฅผ ์ฐธ์กฐํ์ธ์.
- Visual Studio์ฉ GitHub Copilot ํ์ฅ. Copilot ํ์ฅ ํ๋ก๊ทธ๋จ์ ์ค์นํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ง์นจ์ Microsoft ์ค๋ช ์์์ Visual Studio์ GitHub Copilot ์ค์น๋ฅผ ์ฐธ์กฐํ์ธ์.
- GitHub ๊ณ์ ์ Visual Studio์ ์ถ๊ฐํฉ๋๋ค. Microsoft ์ค๋ช ์์์ GitHub ๊ณ์ ์ ํค ์ฒด์ธ์ ์ถ๊ฐ๋ฅผ ์ฐธ์กฐํ์ธ์.
GitHub Copilot์ ์ฑํ
GitHub Copilot ํ์ฅ์ ์ค์นํ ํ Copilot ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ํ ์ ์์ต๋๋ค.
์ฐธ๊ณ ํญ๋ชฉ
์กฐ์ง์์ GitHub Copilot์ ์ก์ธ์คํ ์ ์๋ ๊ฒฝ์ฐ ์กฐ์ง ์์ ์๊ฐ ์ฑํ ์ ์ฌ์ฉํ์ง ์๋๋ก ์ค์ ํ ๊ฒฝ์ฐ GitHub Copilot ์ฑํ ์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์กฐ์ง์์ Copilot Business์ ๋ํ ์ ์ฑ ๊ณผ ๊ธฐ๋ฅ ๊ด๋ฆฌํ๊ธฐ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
-
๊ธฐ์กด ์ฝ๋ ํ์ผ์ ์ฝ๋๋ค.
-
Visual Studio ๋ฉ๋ด ๋ชจ์์์ View, GitHub Copilot ์ฑํ ์ ์ฐจ๋ก๋ก ํด๋ฆญํฉ๋๋ค.
-
Copilot Chat ์ฐฝ์
what does this file do
๋ฅผ ์ ๋ ฅํ ๋ค์, Enter ํค๋ฅผ ๋๋ฅด์ธ์.Copilot์ ๋ต๋ณ์ด ์ง๋ฌธ ์๋์ ํ์๋ฉ๋๋ค.
-
ํธ์ง๊ธฐ์์ ์ฝ๋ ์ค์ ์ ํํฉ๋๋ค.
-
Copilot Chat ์ฐฝ์
explain this line
๋ฅผ ์ ๋ ฅํ ๋ค์, Enter ํค๋ฅผ ๋๋ฅด์ธ์.
์ฒซ ๋ฒ์งธ ์ฝ๋ ์๋ฃ ์ ์ ๊ฐ์ ธ์ค๊ธฐ
๋ค์ ์์์์๋ JavaScript๋ฅผ ์ฌ์ฉํ์ง๋ง ๋ค๋ฅธ ์ธ์ด๋ ๋น์ทํ๊ฒ ์๋ํฉ๋๋ค. GitHub Copilot์ ๋ค์ํ ์ธ์ด์ ๊ด๋ฒ์ํ ํ๋ ์์ํฌ์ ๋ํ ์ ์์ ์ ๊ณตํ์ง๋ง Python, JavaScript, TypeScript, Ruby, Go, C# ๋ฐ C++์์ ํนํ ์ ์๋ํฉ๋๋ค. GitHub Copilot์(๋) ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ์ฟผ๋ฆฌ ์์ฑ, API ๋ฐ ํ๋ ์์ํฌ์ ๋ํ ์ ์ ์์ฑ์ ์ง์ํ๋ฉฐ ์ฝ๋ ๊ฐ๋ฐ๋ก์์ ์ธํ๋ผ์ ๋์์ด ๋ ์ ์์ต๋๋ค.
-
Visual Studio๋ฅผ ์ฝ๋๋ค.
-
Visual Studio์์ ์ JavaScript(*.js) ํ์ผ์ ๋ง๋ญ๋๋ค.
-
JavaScript ํ์ผ์ ๋ค์ ํจ์ ํค๋๋ฅผ ์ ๋ ฅํฉ๋๋ค.
JavaScript function calculateDaysBetweenDates(begin, end) {
function calculateDaysBetweenDates(begin, end) {
GitHub Copilot์ ์๋์ผ๋ก ์ ์ฒด ํจ์ ๋ณธ๋ฌธ์ ํ์ ํ ์คํธ๋ก ์ ์ํฉ๋๋ค. ์ ํํ ์ ์์ ๋ค๋ฅผ ์ ์์ต๋๋ค.
- ์ ์์ ์๋ฝํ๋ ค๋ฉด Tab ํค๋ฅผ ๋๋ฆ ๋๋ค.
๋ค์ ๋จ๊ณ
- Copilot ์ฝ๋ ์์ฑ ์์ธํ ์์๋ณด๊ธฐ - Getting code suggestions in your IDE with GitHub Copilot์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- **GitHub Copilot ์ฑํ ์ ๋ํด ์์ธํ ์์๋ณด๋ ค๋ฉด **Asking GitHub Copilot questions in your IDE.
- ํจ๊ณผ์ ์ผ๋ก ํ๋กฌํํธ๋ฅผ ์์ฑํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ - Prompt engineering for GitHub Copilot Chat์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ์ ๋ฌธ๊ฐ์ฒ๋ผ ํ๋กฌํํธ ํ์ํ๊ธฐ - YouTube์์ Visual Studio GitHub Copilot์ ์ฌ์ฉํ์ฌ ํ๋กฌํํธ ์์ง๋์ด๋ง์ ์์ฒญํ์ธ์.
- ๋ชจ๋ฐ์ผ ๋๋ฐ์ด์ค์์ Copilot ์ฌ์ฉ - Asking GitHub Copilot questions in GitHub Mobile์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ช ๋ น์ค์์ Copilot ์ฌ์ฉ - CLI์ GitHub Copilot ์ฌ์ฉ์ ์ง์ ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ํธ์ง๊ธฐ์์ Copilot ๊ตฌ์ฑ - ํธ์ง๊ธฐ ๋ด์์ GitHub Copilot์(๋ฅผ) ํ์ฑํ ๋๋ ๋นํ์ฑํํ๊ณ ์ ๋ํด ์ ํธํ๋ ๋ฐ๋ก ๊ฐ๊ธฐ ํค๋ฅผ ์ง์ ๋ง๋ค ์ ์์ต๋๋ค. Configuring GitHub Copilot in your environment์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
GitHub Copilot์ ์๋ํฐ์ ์ ๋ ฅํ ๋ ์ฝ๋ฉ ์ ์์ ์ ๊ณตํฉ๋๋ค. ๋ํ ์ฝ๋ฉํ๋ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ, ๋ฒ๊ทธ ์์ ๋ฐฉ๋ฒ, ๋ค๋ฅธ ์ฌ๋์ ์ฝ๋๊ฐ ์๋ํ๋ ๋ฐฉ๋ฒ ๋ฑ Copilot ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ํ ์๋ ์์ต๋๋ค. Copilot์์ ์ํํ ์ ์๋ ์์ ์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot์ด๋?์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
Copilot ์ฌ์ฉ ์ง์นจ์ ์ฌ์ฉํ๋ ค๋ ํ๊ฒฝ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋๋ค. ์ด ๋น ๋ฅธ ์์ ๋ฒ์ ์ JetBrains IDE์ฉ์ ๋๋ค. ๋ค๋ฅธ ํ๊ฒฝ์์ Copilot์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ง์นจ์ ์์ ํญ์ ํด๋ฆญํฉ๋๋ค.
GitHub Copilot ๊ฐ์
Copilot์ ์ฌ์ฉํ๋ ค๋ฉด Copilot ํ๋์ ์ก์ธ์คํ ์ ์๋ ๊ฐ์ธ GitHub ๊ณ์ ์ด ํ์ํฉ๋๋ค. ๋ค์์ด ๊ฐ๋ฅํฉ๋๋ค.
- ํ๋์ ๊ฐ์ ํ์ง ์๊ณ ์ ํ๋ ๊ธฐ๋ฅ์ ํ์ํ๋ ค๋ฉด Copilot Free๋ก ์์ํ์ธ์.
- Copilot Pro ๋๋ Copilot Pro(ํ๋ก)+๋ก ์ ๊ทธ๋ ์ด๋ํ๋ฉด ๋ ๋ง์ ๊ธฐ๋ฅ, ๋ชจ๋ธ, ์์ฒญ ํ๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
GitHub Copilot์ ๋ค์ํ ํ๋์ ๋ํ ์์ธํ ๋ด์ฉ์ GitHub Copilot ํ๋์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
ํ์ ์กฐ๊ฑด
- ํธํ๋๋ JetBrains IDE์ ๋๋ค. Copilot์(๋) ๋ง์ ์์ JetBrains IDE์์ ์ง์๋ฉ๋๋ค. ์ ์ฒด ๋ชฉ๋ก์ Asking GitHub Copilot questions in your IDE์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- GitHub Copilot ํ์ฅ์ ์ต์ ๋ฒ์ ์ ๋๋ค. JetBrains Marketplace์์ GitHub Copilot ํ๋ฌ๊ทธ ์ธ์ ์ฐธ์กฐํ์ธ์. ์ค์น ์ง์นจ์ ์ฌ์ฉ์ ํ๊ฒฝ์ GitHub Copilot ํ์ฅ ์ค์น์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- JetBrains IDE์์ GitHub์ ๋ก๊ทธ์ธํฉ๋๋ค. ์ธ์ฆ ์ง์นจ์ ์ฌ์ฉ์ ํ๊ฒฝ์ GitHub Copilot ํ์ฅ ์ค์น์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
GitHub Copilot์ ์ฑํ
GitHub Copilot ํ๋ฌ๊ทธ ์ธ์ ์ค์นํ ํ Copilot ์ฝ๋ฉ ๊ด๋ จ ์ง๋ฌธ์ ํ ์ ์์ต๋๋ค.
์ฐธ๊ณ ํญ๋ชฉ
์กฐ์ง์์ GitHub Copilot์ ์ก์ธ์คํ ์ ์๋ ๊ฒฝ์ฐ ์กฐ์ง ์์ ์๊ฐ ์ฑํ ์ ์ฌ์ฉํ์ง ์๋๋ก ์ค์ ํ ๊ฒฝ์ฐ GitHub Copilot ์ฑํ ์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์กฐ์ง์์ Copilot Business์ ๋ํ ์ ์ฑ ๊ณผ ๊ธฐ๋ฅ ๊ด๋ฆฌํ๊ธฐ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
-
๊ธฐ์กด ์ฝ๋ ํ์ผ์ ์ฝ๋๋ค.
-
JetBrains IDE ์ฐฝ์ ์ค๋ฅธ์ชฝ์์ Copilot Chat ์์ด์ฝ์ ํด๋ฆญํ์ฌ Copilot Chat ์ฐฝ์ ์ฝ๋๋ค.
-
Copilot Chat ์ฐฝ์
what does this file do
๋ฅผ ์ ๋ ฅํ ๋ค์, Enter ํค๋ฅผ ๋๋ฅด์ธ์.Copilot์ ๋ต๋ณ์ด ์ง๋ฌธ ์๋์ ํ์๋ฉ๋๋ค.
-
ํธ์ง๊ธฐ์์ ์ฝ๋ ์ค์ ์ ํํฉ๋๋ค.
-
Copilot Chat ์ฐฝ์
explain this line
๋ฅผ ์ ๋ ฅํ ๋ค์, Enter ํค๋ฅผ ๋๋ฅด์ธ์.
์ฒซ ๋ฒ์งธ ์ฝ๋ ์๋ฃ ์ ์ ๊ฐ์ ธ์ค๊ธฐ
๋ค์ ์์์์๋ JavaScript๋ฅผ ์ฌ์ฉํ์ง๋ง ๋ค๋ฅธ ์ธ์ด๋ ๋น์ทํ๊ฒ ์๋ํฉ๋๋ค. GitHub Copilot์ ๋ค์ํ ์ธ์ด์ ๊ด๋ฒ์ํ ํ๋ ์์ํฌ์ ๋ํ ์ ์์ ์ ๊ณตํ์ง๋ง Python, JavaScript, TypeScript, Ruby, Go, C# ๋ฐ C++์์ ํนํ ์ ์๋ํฉ๋๋ค. GitHub Copilot์(๋) ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๋ํ ์ฟผ๋ฆฌ ์์ฑ, API ๋ฐ ํ๋ ์์ํฌ์ ๋ํ ์ ์ ์์ฑ์ ์ง์ํ๋ฉฐ ์ฝ๋ ๊ฐ๋ฐ๋ก์์ ์ธํ๋ผ์ ๋์์ด ๋ ์ ์์ต๋๋ค.
-
JetBrains ํธ์ง๊ธฐ์์ ์ JavaScript(*.js) ํ์ผ์ ๋ง๋ญ๋๋ค.
-
JavaScript ํ์ผ์ ๋ค์ ํจ์ ํค๋๋ฅผ ์ ๋ ฅํฉ๋๋ค.
JavaScript function calculateDaysBetweenDates(begin, end) {
function calculateDaysBetweenDates(begin, end) {
GitHub Copilot์ ์๋์ผ๋ก ์ ์ฒด ํจ์ ๋ณธ๋ฌธ์ ํ์ ํ ์คํธ๋ก ์ ์ํฉ๋๋ค. ์ ํํ ์ ์์ ๋ค๋ฅผ ์ ์์ต๋๋ค.
- ์ ์์ ์๋ฝํ๋ ค๋ฉด Tab ํค๋ฅผ ๋๋ฆ ๋๋ค.
๋ค์ ๋จ๊ณ
- Copilot ์ฝ๋ ์์ฑ ์์ธํ ์์๋ณด๊ธฐ - Getting code suggestions in your IDE with GitHub Copilot์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- **GitHub Copilot ์ฑํ ์ ๋ํด ์์ธํ ์์๋ณด๋ ค๋ฉด **Asking GitHub Copilot questions in your IDE.
- ํจ๊ณผ์ ์ผ๋ก ํ๋กฌํํธ๋ฅผ ์์ฑํ๋ ๋ฐฉ๋ฒ ์์๋ณด๊ธฐ - Prompt engineering for GitHub Copilot Chat์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ชจ๋ฐ์ผ ๋๋ฐ์ด์ค์์ Copilot ์ฌ์ฉ - Asking GitHub Copilot questions in GitHub Mobile์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ๋ช ๋ น์ค์์ Copilot ์ฌ์ฉ - CLI์ GitHub Copilot ์ฌ์ฉ์ ์ง์ ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
- ํธ์ง๊ธฐ์์ Copilot ๊ตฌ์ฑ - ํธ์ง๊ธฐ ๋ด์์ GitHub Copilot์(๋ฅผ) ํ์ฑํ ๋๋ ๋นํ์ฑํํ๊ณ ์ ๋ํด ์ ํธํ๋ ๋ฐ๋ก ๊ฐ๊ธฐ ํค๋ฅผ ์ง์ ๋ง๋ค ์ ์์ต๋๋ค. Configuring GitHub Copilot in your environment์(๋ฅผ) ์ฐธ์กฐํ์ธ์.