GitHub Copilot offers suggestions as you type in VS Code and a chat panel for questions or larger changes. Use your Copilot-enabled account to sign in, then try a suggestion in a practice file before changing a project.
Visual Studio is a different desktop editor with its own controls. These steps cover Visual Studio Code on Windows, Mac, and Linux, with the keyboard differences marked where they matter.
In this guide
Connect your Copilot-enabled account
Open a current copy of VS Code. Select the Accounts menu in the Activity Bar, then Sign in to use GitHub Copilot. The Copilot icon in the Status Bar is another starting point if the account menu isn't where you expected.

Complete the browser sign-in and return to the editor. Use the GitHub account your employer has given Copilot access to, or your personal account for personal access. An eligible account without a subscription can start with Copilot Free.
Microsoft's setup steps explain the browser authorization. After sign-in, the Copilot Status Bar icon should show active status.
For a company account on GHE.com, choose Continue with GHE.com in the sign-in dialog and enter the company's instance address. Your personal GitHub.com login won't give you Copilot access assigned to a different enterprise account.
Trust a practice folder that you created yourself if Workspace Trust appears. Restricted Mode blocks Copilot setup and agent actions. Keep unfamiliar downloaded projects restricted until you've checked what they contain.
Get a useful suggestion while typing
Create a small file in a language you recognize and save it with the right extension, such as .js for JavaScript. A saved filename and the surrounding code give Copilot context about the language and the work you're doing.
Write a comment describing one task, then begin the function that should perform it. For example, ask for a function that counts empty strings in a list. Include what should happen with an empty list so the expected result is clear.
Pause after starting the function. A suggestion appears as dimmed text at the cursor. That text hasn't become part of the file yet; read it before accepting it.
- Press Tab to accept the suggestion.
- Press Escape to dismiss it and keep writing yourself.
- Hover over the suggestion to see controls for comparing alternatives when it offers several versions.
To accept just the next word, use Ctrl+Right for Windows and Linux; use Command+Right on macOS. Accepting a word at a time helps when the beginning looks right but the rest needs your own logic.
If nothing appears, open the Command Palette with Ctrl+Shift+P, or Command+Shift+P on Mac. Run Trigger Inline Suggestion. If a suggestion appears, the editor can request one even though the automatic trigger didn't run.
Ask chat about the code you're working on
Open the Chat view with Toggle Chat. Type a question in its input box and press Enter, or select Send. Start with a specific question, such as asking what the selected function does and what value it returns.
Include the relevant code as context instead of asking about an unnamed file. The chat controls let you add context to a request. Check which file or selected code is attached before sending the question.
A useful request names the goal, constraints, and expected result. For example: explain why this function returns an empty list when the input contains two matching items. That gives the conversation a concrete problem to answer.
Read the response against the actual file. If it describes a variable that isn't there, correct the context or name the missing detail in a follow-up. Repeating the same broad request won't tell the tool which assumption went wrong.
For the separate Microsoft IDE, opening Copilot Chat in Visual Studio uses that application's menu and account controls. Don't search its menus inside VS Code.
Let an agent change a small task, then review it
An agent can do more than answer questions: it can read files, propose edits, and use tools. Begin with a small job, such as adding an input check to one function, rather than asking it to rewrite an unfamiliar application.
Specify what must stay the same. A request to handle an empty value should also say whether the existing return type and public function name must remain unchanged. Those constraints make the proposed change easier to judge.
Read tool approval prompts before allowing commands. A command can install packages or change files outside the one you were discussing. Approve the action because you understand its purpose, rather than because the chat looks finished.
Review the changed files and run the project's normal checks. For a small practice function, try ordinary input, an empty input, and the unusual case you asked it to handle. Correct-looking code can still return the wrong result.
I'd start with completion and explanation before using an agent on a real project. You'll learn which context the tool needs while the changes are still easy to inspect.
Handle missing access or missing suggestions
If paid Copilot access is missing, select Accounts and look at the signed-in account. To change it, select the current GitHub account, choose Sign Out, then reconnect Copilot using the account assigned that access.
Open the Copilot status dashboard from the Status Bar to check usage. If you've reached a usage limit, check your plan and remaining allowance rather than reinstalling the extension again. The account display shows what's available.
On a metered connection, where data usage is limited, VS Code doesn't request automatic inline suggestions. If manual suggestions work but automatic ones don't, check whether VS Code sees the network as metered before changing your code.
If work access is blocked, have your administrator review your Copilot seat and editor policies. Include your account, editor version, and exact error. For personal subscription or sign-in permission problems, use GitHub Support.
Command-line work has its own setup. The Windows Terminal Copilot guide covers that route when you want assistance in a shell instead of the editor.
The Short Version
Connect Copilot from VS Code's Accounts menu, try a small inline suggestion, then use chat with the relevant code attached. Review edits and command requests before accepting them, and check the result as you would your own code.
Checked December 5, 2026.







