VS Code で GitHub Copilot を使う:拡張、GitHub サインイン、インライン、Chat
Copilot 拡張と GitHub ログイン、インライン Tab と Chat の初タスク。
初めて VS Code で GitHub Copilot を使うとき、拡張未導入、GitHub 公式サインイン 未完了、インラインと Chat の違いが分からない、で止まりがちです。
The query is VS Code で GitHub Copilot をインストールして使う. This page follows GitHub docs at docs.github.com/ja/copilot for VS Code setup, sign-in, inline suggestions, and Copilot Chat. Copilot requires a legitimate subscription from github.com or your org—no shared accounts. For terminal Copilot, see our Copilot CLI note. To walk a diff on a short call, open a room on wbmeet; see how to create and join a room.
What Copilot does in VS Code
GitHub Copilot offers inline suggestions (gray ghost completions as you type—Tab to accept) and Copilot Chat (sidebar chat with @ workspace, current file, selection, etc.). You typically install GitHub.copilot plus GitHub.copilot-chat; exact bundle names depend on Marketplace and your build. Individuals and teams enable Copilot or Copilot Business/Enterprise through official GitHub billing; quotas and models show in your account.
Install Copilot extensions
- 1
Install from VS Code Marketplace
Open VS Code,
Cmd+Shift+X/Ctrl+Shift+X, search GitHub Copilot, confirm publisher GitHub and idGitHub.copilot, then Install. If prompted for GitHub Copilot Chat (GitHub.copilot-chat), install it too for the Chat panel. - 2
Reload the window
If the Copilot icon is missing, run Developer: Reload Window from the Command Palette or restart VS Code.
- 3
Not Copilot CLI
This page covers VS Code extensions only. Terminal workflows use Copilot CLI—see our CLI install guide.
Sign in with GitHub
- 1
Start sign-in
Click the Copilot icon or run GitHub Copilot: Sign In / Copilot: Sign in from the Command Palette. Choose Sign in with GitHub and authorize in the browser at github.com.
- 2
Verify subscription
Status bar or the Copilot view should show enabled. If denied, check github.com/settings/copilot for personal trial/subscription or ask an admin for Copilot Business seats. Use only your official GitHub account and legitimate payment when required.
- 3
Enterprise and proxies
For GitHub Enterprise Cloud/Server, follow IT docs for VS Code GitHub authentication. On failure, check proxy, default browser, and the VS Code Accounts menu.
Inline suggestions
- 1
Open a code file
In a repo you own, open a supported file. Add a comment such as
// parse user id from headerand wait for gray ghost text. - 2
Accept or dismiss
Press Tab to accept; Esc to dismiss. GitHub docs describe cycling alternatives (often
Alt+]/Option+]—confirm in docs and your keybindings). - 3
Toggle and conflicts
Pause completions from the status bar Copilot icon. If another AI extension also shows ghost text, disable one inline provider for hour one.
First Copilot Chat task
- 1
Open Chat
Open Copilot Chat or use
Cmd+Shift+I/Ctrl+Shift+Iper GitHub docs and your Copilot Chat build. - 2
Attach current file
Use
#fileor the Add Context /@menu for Current File. Hour one, read-only: “In three sentences, explain this file’s main exports and responsibilities.” - 3
Optional small edit
Second prompt: “Add a unit test for one untested helper; show diff before applying.” Review with
git diff; auto-apply behavior varies by version—see release notes.
# First hour · GitHub Copilot · VS Code · 2026-10-10
# Extensions → GitHub Copilot (+ Copilot Chat)
# Sign in with GitHub (official account + subscription)
# Inline: comment → ghost text → Tab
# Chat: @ current file → explain exports → review before applyFeature comparison
| Feature | Good for | First-hour note |
|---|---|---|
| Inline | Boilerplate, function bodies | Accept in small Tab steps |
| Copilot Chat | Explain, refactor talk | @ one file first |
| GitHub sign-in | Enable service | Official OAuth only |
| Copilot CLI | Terminal workflows | Separate guide |
No ghost text
Confirm sign-in, Copilot not paused, language supported; check org disable policies.
Chat permission error
Install Copilot Chat; verify subscription includes Chat; re-sign in.
Weak suggestions
Add types and clear names; narrow Chat to current file.
Official path: install GitHub.copilot (+ Chat) → Sign in with GitHub → Tab inline → Chat @ current file for a read-only first task. Trust docs.github.com/ja/copilot for your version.
- Vs Continue / Roo Code
- Copilot ties to GitHub billing; others may use BYOK. Keep one inline provider enabled. See Continue and Roo Code.
- Personal subscription required?
- Personal trial/paid or org Business/Enterprise seats—check GitHub account and admin policy.
- Not a meeting-product guide
- Only Copilot’s first hour in VS Code. Short call: wbmeet.
確認したい質問
Is there still a free trial?
GitHub adjusts Copilot trials and pricing; check github.com/settings/copilot and official pricing—this page does not guarantee a free tier.
Does Copilot upload my private code?
Handling follows GitHub Copilot trust and privacy docs; enterprise policies add controls. Read docs.github.com and obey company policy for sensitive repos.
Do inline and Chat share one subscription?
Usually one Copilot license covers both in VS Code; confirm for your account type and extension prompts.
Must the first task change code?
No. Tab one inline line, then a read-only Chat explanation before asking for a small reviewed diff.