Press ESC to close · Ctrl+K to open

Set Up a Development Environment with VS Code, GitHub Copilot and AI Agents

VS Code + AI Agents for Modern Devs — Interactive tutorial with configuration modules, Copilot and frameworks

Choose how you want to follow this guide:

1
2
3
4
5
6
7

Prerequisites

Step 1 of 7 — Check that you have everything you need
  • I have Windows 10/11, Linux or macOS
  • I have a stable Internet connection
  • I have a GitHub account (or I'll create one now at github.com)
  • I have (or will subscribe to) a GitHub Copilot subscription
GitHub Copilot has a free tier with limitations. For full AI agents you'll need an Individual, Business or Enterprise subscription.

Install Visual Studio Code

Step 2 of 7 — Your main editor
  • Downloaded from code.visualstudio.com
  • Installed with option: Add to PATH
  • Installed with option: Open with Code in context menu
  • Verified in terminal:
code --version
If the command shows the version number, VS Code is correctly installed and available from any terminal.

Install and Configure Git

Step 3 of 7 — Version control
  • Git downloaded and installed from git-scm.com
  • Name and email configured:
git config --global user.name "Your Name" git config --global user.email "your@email.com" git config --global core.editor "code --wait"
  • SSH key generated and added to GitHub
ssh-keygen -t ed25519 -C "your@email.com" # Copy public key to GitHub > Settings > SSH Keys
  • SSH connection verified:
ssh -T git@github.com # "Hi username! You've successfully authenticated..."

Clone the Repository

Step 4 of 7 — Bring the project to your machine
  • Repository cloned:
git clone git@github.com:user/my-project.git cd my-project
  • VS Code opened in the project:
code .
  • File Explorer shows the project structure
  • Source Control (Ctrl+Shift+G) detects the Git repository
  • Integrated Terminal (Ctrl+`) opens in the project directory
You can also clone from VS Code: Ctrl+Shift+P → "Git: Clone" → paste the URL.

Install GitHub Copilot

Step 5 of 7 — Your AI assistant
  • Extensions panel opened: Ctrl+Shift+X
  • Searched and installed "GitHub Copilot" (official extension)
  • Signed in to GitHub (Sign In with OAuth)
  • Copilot icon visible in the bottom status bar
The "GitHub Copilot" extension includes both inline autocompletion and Copilot Chat with Agent mode. No separate extensions needed.

Enable AI Agents

Step 6 of 7 — Select model and agent mode
  • Copilot Chat opened: Ctrl+Shift+I
  • Selected Agent mode at the top of the chat
  • AI model chosen (click on model name):
Available models: Claude Opus 4.6 → Complex, multi-file tasks
Claude Sonnet 4 → Daily development, balanced
GPT-4o → Multimodal, fast
Gemini 2.5 Pro → Massive context (1M tokens)
o3 → Advanced reasoning and logic
  • Tested with a simple message: "Can you see the files in my project?"
In Agent mode, the AI can search files, edit code, run terminal commands and fix errors autonomously.

Final Verification

Step 7 of 7 — Confirm everything works
  • VS Code open with the project loaded
  • Git works: git status shows the repo state
  • Copilot active: icon visible in status bar
  • AI agent responds in the chat
  • Integrated terminal operational
Environment ready! You now have VS Code + Git + GitHub Copilot with AI Agents configured. You can start working productively with your AI assistant.
THIS IS HOW YOUR ENVIRONMENT SHOULD LOOK
Final result: VS Code development environment with Copilot and AI Agents working
Step 1 of 7