Quick Start
This chapter follows two official Quickstart paths: accept your first inline suggestion in VS Code, then open Chat and ask one question. Full steps: Quickstart for GitHub Copilot.
Finish Installation first. The samples use JavaScript; Python, TypeScript, Go, and others work the same way. GitHub notes Copilot is especially strong with Python, JavaScript, TypeScript, Ruby, Go, C#, and C++.
Open a practice folder
Windows (PowerShell 7):
macOS:
Confirm Copilot is signed in (Status Bar).
First completion (ghost text)
- Create
dates.js. - Type the function header (do not write the body yet):
- Pause. Copilot usually fills a gray ghost-text body; the exact text varies.
- Accept:
Tab. - Reject:
Esc, or keep typing to overwrite.
If gray text never appears: check that Copilot is not paused; try Alt+\ on Windows or Option+\ on macOS to trigger (see Completions).
Read the suggestion yourself. Date math is easy to get wrong by a day or a timezone. Accepting is not the same as being correct.
Steer the next line with a comment
On a new line, describe the goal in a natural-language comment, then an empty header:
When ghost text appears, Tab to accept or Esc to dismiss. That is official comment-driven code generation: the more specific the comment (edges, return type, what not to do), the closer the suggestion.
First Chat
Official VS Code Quickstart: open the Chat view.
You can also click the Chat / Copilot icon in the title bar. If your organization disabled Chat, the box stays unusable—that is policy, not a broken shortcut.
Try this (select calculateDaysBetweenDates or keep dates.js focused):
Check whether the reply cites symbols from your file. If it wanders, add context: select code, or use #file / @workspace (see Chat).
Let Chat change one small thing (still review)
Then send:
Chat may offer a patch or an insertable block. Before Keep / Accept, check:
- Whether it touched files you did not ask for
- Whether nulls, string dates, and timezones are still vague
Reject if you dislike it; shorten the prompt, or go back to typing with inline complete.
The official Quickstart also demos generating a full task-manager web app in Agent mode (multiple files). For this first hour stay on Ask / ordinary Chat until you can read a diff, then widen scope in Coding Agent.
First-hour checklist
- Extension installed, signed in with GitHub
- New
dates.js, ghost text oncalculateDaysBetweenDates - Use
Tabonce andEsconce - Comment-drive
isLeapYear - Open Chat with
Ctrl+Alt+I/Control+Command+Iand explain the file - (Optional) On github.com, open a file in a repo you can access, click the Copilot icon, ask
Explain this file.—the website Quickstart path
Windows vs macOS (this chapter)
Rebind in Keyboard Shortcuts by command name (for example editor.action.inlineSuggest.commit). Your local bindings win.