Ai Coding Tools

How to Integrate GitHub Copilot for Your First Project in Just 2 Hours

By BTW Team3 min read

Comparing tools? See the AI tools tested on the show.

In short

A step-by-step tutorial on how to effectively integrate GitHub Copilot into your development workflow using your first project as a case study.

If you’re a solo founder or indie hacker, you’re likely juggling multiple roles, and finding time to code can be challenging. Enter GitHub Copilot, an AI-powered coding assistant that can help you write code faster. But integrating it into your workflow might seem daunting. The good news? You can have it set up and running in your first project in just about 2 hours.

Prerequisites: What You'll Need

Before diving in, make sure you have the following:

  1. GitHub Account: You’ll need an account to use Copilot.
  2. Visual Studio Code (VS Code): This is where you'll be integrating Copilot.
  3. GitHub Copilot Subscription: As of June 2026, it costs $10/month or $100/year.
  4. Basic Understanding of JavaScript or Python: This guide assumes you’re familiar with either language.

Step 1: Install Visual Studio Code

First, download and install Visual Studio Code from the official website. It’s free and works on all major operating systems.

  1. Follow the installation prompts.
  2. Open VS Code once it's installed.

Step 2: Install the GitHub Copilot Extension

  1. Go to the Extensions view in VS Code (click on the Extensions icon or press Ctrl+Shift+X).
  2. Search for "GitHub Copilot".
  3. Click "Install" on the GitHub Copilot extension.

Expected Output: You should see a new icon for Copilot in your sidebar once installed.

Step 3: Activate GitHub Copilot

  1. After installation, you’ll need to sign in with your GitHub account.
  2. Follow the prompts to authorize and activate Copilot.

Expected Output: You should see a success message confirming that Copilot is active.

Step 4: Create a New Project

  1. In VS Code, create a new folder for your project.

  2. Open the terminal (Ctrl + `` ) and run the command to initialize a new Git repository:

    git init
    
  3. Create a new JavaScript or Python file (e.g., app.js or app.py).

Step 5: Start Coding with Copilot

Now that you have everything set up, you can start coding.

  1. Type a comment describing what you want to do. For example, if you’re building a simple calculator in JavaScript, you might type:

    // Function to add two numbers
    
  2. Press Enter, and Copilot will suggest code. Use Tab to accept the suggestion.

Expected Output: You should see Copilot-generated code in your file.

Troubleshooting: What Could Go Wrong

  • Copilot Not Suggesting Code: Make sure you’re connected to the internet and signed in to GitHub.
  • Suggestions Not Relevant: Copilot learns from context, so ensure your comments are clear and descriptive.

What's Next: Building on Your Foundation

Once you’ve successfully integrated Copilot, consider exploring more complex features. You could:

  • Build a full-stack application using frameworks like React or Flask.
  • Experiment with more advanced Copilot features, like code refactoring or testing suggestions.

Conclusion: Start Here

Integrating GitHub Copilot into your workflow can significantly speed up your coding process. In just 2 hours, you can have it set up and working for your first project. Start by following the steps outlined here, and soon you'll find yourself coding more efficiently.

If you’re looking for more practical advice on building in public, check out our podcast, where we share tools we’re testing and lessons from our building journey.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read