Setting up GitHub Copilot for your development workflow
- 2/25/2026
- Practice files
- Set up your GitHub account and select a Copilot plan
- Install Copilot in your development environment
- Configure permissions and personal settings
- Test Copilot with sample prompts across languages
- Troubleshoot installation issues and common errors
- Apply best practices for using Copilot effectively
- Explore Copilot's functionality in online and offline modes
- Skills review
- Practice tasks
Practice tasks
No practice files are necessary to complete the practice tasks in this chapter. Follow the steps below to reinforce the concepts and tools introduced in each section.
Set up your GitHub account and select a Copilot plan
Create your GitHub account and explore available Copilot plans:
Open your browser and go to https://github.com.
Select Sign Up and enter your email, password, and username.
Complete the CAPTCHA and email verification steps.
Navigate to https://github.com/features/copilot.
Compare the Free, Pro, and Pro+ subscription options.
Select Start Free Trial if applicable or subscribe to the plan that suits your needs.
Install Copilot in your development environment
Set up GitHub Copilot in your preferred IDE:
Open https://code.visualstudio.com and install Visual Studio Code.
Launch VS Code and open the Extensions panel (Ctrl+Shift+X).
Search for GitHub Copilot and then click Install.
Sign in with your GitHub account when prompted.
Verify that the Copilot icon appears in the bottom-right corner of the IDE.
Repeat steps 2–5 in another supported IDE, like JetBrains or Codespaces, if desired.
Configure permissions and personal settings
Customize Copilot behavior in VS Code:
In VS Code, go to File > Preferences > Settings.
Search for Copilot to view all available settings.
Adjust the suggestion frequency, panel view, and language preferences.
Open Keyboard Shortcuts and test:
Alt+/ to trigger a suggestion.
Tab to accept a suggestion.
Ctrl+Enter for multiple options.
Explore the Copilot sidebar and Labs features (if available).
Test Copilot with sample prompts across languages
Try prompts in Python, JavaScript, SQL, and HTML:
Create the following new files in VS Code:
test.py
script.js
query.sql
index.html
In each file, write a comment that describes a function or layout:
In test.py, try this prompt:
In script.js, try this prompt:
In query.sql, try this prompt:
In index.html, add this prompt:
Observe Copilot’s suggestions and accept or modify them.
Troubleshoot installation issues and common errors
Simulate and resolve common Copilot setup issues:
Disconnect from the internet and confirm that Copilot goes offline.
Reconnect and restart VS Code.
Open the Command Palette (Ctrl+Shift+P) and run GitHub: Sign Out and then GitHub: Sign In.
Try triggering suggestions in an unsupported file type (e.g., a .txt file) to observe limitations.
Visit your GitHub Copilot dashboard to confirm your subscription status.
Apply best practices for using Copilot effectively
Learn to prompt Copilot for optimal code suggestions:
In a Python file, write vague and specific comments to compare results:
vs.
Try adding a step-by-step comment block:
Accept and test suggestions, modifying variable names and logic.
Create a docstring-based prompt and observe Copilot’s understanding.
Write insecure code and observe whether Copilot flags or reinforces bad practices.
Explore Copilot’s functionality in online and offline modes
Compare Copilot behavior in cloud vs. local setups:
Open GitHub Codespaces and confirm that Copilot provides suggestions immediately as you start typing code.
Use inline comments in Codespaces to test real-time completions.
Switch to local VS Code and simulate working offline.
Try using Copilot Chat (if on the Pro plan) and note what the chat experience is like.
Review telemetry settings in your GitHub Copilot preferences.
Reflect on how cloud-first environments differ from local development.
