Ai Coding Tools

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

By BTW Team3 min read

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

As indie hackers and solo founders, we often find ourselves juggling multiple roles, and coding can sometimes feel like the most daunting task. What if I told you that you could leverage AI to speed up your coding process significantly? In 2026, GitHub Copilot has matured into a powerful coding assistant that can help you write an entire project in just two hours. Yes, you read that right. Let’s break down how to do it effectively.

Prerequisites: What You Need

Before diving in, make sure you have the following:

  1. GitHub Account: You’ll need an account to access Copilot.
  2. Visual Studio Code: This is where you'll be coding.
  3. GitHub Copilot Subscription: As of March 2026, it costs $10/month for individual developers.
  4. Basic Coding Knowledge: Familiarity with the programming language you're using (e.g., JavaScript, Python).

Step 1: Setting Up GitHub Copilot

  1. Install Visual Studio Code: If you haven’t yet, download and install VS Code.
  2. Install GitHub Copilot Extension: Go to the Extensions Marketplace in VS Code and search for "GitHub Copilot". Click "Install".
  3. Sign In to GitHub: Once installed, sign in to your GitHub account.

Expected Output: You should see a Copilot icon in your VS Code sidebar, indicating that it’s ready to assist you.

Step 2: Start Your Project

  1. Create a New Repository: Set up a new repository on GitHub for your project.
  2. Initialize Your Project: Open a new folder in VS Code and create a new file (e.g., app.js for a Node.js project).

Step 3: Leverage GitHub Copilot

  1. Write Comments for Functionality: Start by typing comments that describe what you want to achieve. For example:

    // Create a function to fetch data from an API
    

    Copilot will suggest code snippets based on your comments.

  2. Accept Suggestions: When Copilot suggests code, you can accept it by pressing Tab. If it’s not what you want, you can cycle through other suggestions with the arrow keys.

  3. Refine Your Code: Continue adding comments and refining your code until you have a complete working function.

Example Code Snippet

// Fetch data from an API
async function fetchData(url) {
    const response = await fetch(url);
    const data = await response.json();
    return data;
}

Step 4: Testing Your Code

  1. Set Up Test Cases: Write simple test cases to ensure your code works as expected. For example:

    // Test fetchData function
    fetchData('https://api.example.com/data').then(data => {
        console.log(data);
    });
    
  2. Run Your Tests: Use the terminal in VS Code to run your project and check for any errors.

Troubleshooting: What Could Go Wrong

  • Incomplete Suggestions: Sometimes Copilot may not understand your intent fully. If the suggestions don’t fit your needs, don’t hesitate to tweak the comments or add more context.
  • Errors in Code: Always double-check the generated code. AI can make mistakes, and it’s up to you to validate the output.

What's Next: Scaling Your Project

Once your initial project is up and running, consider:

  • Adding More Features: Use Copilot to help you brainstorm and implement additional features.
  • Version Control: Make sure to commit your changes to GitHub regularly.
  • Seek Feedback: Share your project with peers for insights and improvements.

Conclusion: Start Here

Using GitHub Copilot can drastically cut down your coding time. By following these steps, you can effectively write an entire project in about two hours. The key is to use comments to guide Copilot and refine the output as necessary.

If you're looking to maximize your productivity while coding, give GitHub Copilot a shot. You may find it’s the tool that makes your side projects not only feasible but also enjoyable.

Follow Our Building Journey

Weekly podcast episodes on tools we're testing, products we're shipping, and lessons from building in public.

Subscribe

Never miss an episode

Subscribe to Built This Week for weekly insights on AI tools, product building, and startup lessons from Ryz Labs.

Subscribe
Ai Coding Tools

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read