Ai Coding Tools

How to Use GitHub Copilot to Write an Entire Project in Under 2 Hours

By BTW Team4 min read

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

In short

Learn a step-by-step method to leverage GitHub Copilot for completing a coding project rapidly and efficiently.

As solo founders and indie hackers, we often find ourselves juggling multiple roles. Writing code can be time-consuming, and let's be honest—sometimes it feels like a chore. What if I told you that you could leverage AI to help you write an entire coding project in under two hours? Enter GitHub Copilot, a tool that combines the power of AI with your coding expertise. But before you jump in, let’s explore how to actually make this work, the limitations, and the real trade-offs involved.

Prerequisites: What You Need to Get Started

Before diving into using GitHub Copilot, there are a few things you’ll want to have ready:

  1. GitHub Account: You’ll need an account to access GitHub Copilot.
  2. Visual Studio Code (VS Code): This is the primary IDE where Copilot integrates seamlessly.
  3. Copilot Subscription: As of July 2026, GitHub Copilot costs $10/month, but there's a free trial available for new users.
  4. Basic Project Idea: Have a clear idea of what project you want to build. A well-defined scope will help you utilize Copilot effectively.

Step-by-Step: Building Your Project with Copilot

Step 1: Set Up Your Environment (15 minutes)

  • Install VS Code: If you don’t have it, download and install Visual Studio Code.
  • Install GitHub Copilot: Go to the Extensions Marketplace in VS Code and search for "GitHub Copilot." Click install.
  • Sign In: Authenticate your GitHub account to enable Copilot.

Step 2: Define Your Project Structure (10 minutes)

Create a new folder for your project and set up a basic file structure. For example, if you're building a simple web app, you might want:

/my-app
  /index.html
  /style.css
  /app.js

Step 3: Start Writing Code with Copilot (1 hour)

  1. Begin with Comments: In your app.js, start by writing comments that describe the functionality you want. For example:

    // Create a function to fetch user data from an API
    

    Copilot will suggest code snippets based on your comments.

  2. Iterate: As you write more comments, Copilot will continue to generate code. Accept its suggestions by pressing Tab or modify them as needed.

  3. Test as You Go: Use a local server to test your project frequently to catch any issues early.

Step 4: Finalize and Debug (30 minutes)

  • Run Tests: If your project includes tests, run them to ensure everything works as expected.
  • Debugging: Use the debugging tools in VS Code to troubleshoot any issues that arise.

Expected Output

By the end of this process, you should have a functional project that you can build upon. The key here is to leverage GitHub Copilot to speed up the coding process while still applying your own logic and creativity.

Troubleshooting: What Could Go Wrong

  1. Inaccurate Suggestions: Copilot may generate code that doesn’t fully align with your needs. Always review what it suggests critically.
  2. Limited Context Understanding: Copilot doesn’t know your entire project context. If your project is complex, you may need to guide it more explicitly.
  3. Dependency Management: If your project requires specific libraries, make sure to install them manually as Copilot won’t handle that.

Pricing Comparison: GitHub Copilot vs. Alternatives

| Tool | Pricing | Best For | Limitations | Our Verdict | |--------------------|-----------------------|--------------------------|------------------------------------|-------------------------------| | GitHub Copilot | $10/mo (Free trial) | AI-assisted coding | May generate incorrect code | Essential for rapid prototyping | | TabNine | $12/mo (Free tier + $20/mo Pro) | Autocompletion | Limited to basic suggestions | Good for simple projects | | Replit | Free + $20/mo Pro | Collaborative coding | Performance issues on large apps | Great for team projects | | Codeium | Free | AI-powered autocomplete | Lacks advanced debugging features | Good for basic tasks | | Sourcery | $19/mo | Refactoring code | Focused on Python only | Ideal for Python developers |

Conclusion: Start Here

If you’re looking to write an entire project in under two hours, GitHub Copilot is a tool worth considering. While it won’t do everything for you, it can significantly speed up the coding process if you provide clear guidance. Just remember to test your code frequently and be ready to make adjustments.

What We Actually Use

In our experience, GitHub Copilot remains a staple in our toolkit for rapid development, especially for smaller projects. We also occasionally use TabNine for its autocomplete capabilities, but Copilot's integration with VS Code makes it our go-to choice.

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