Ai Coding Tools

How to Use GitHub Copilot to Code a Complete Project in 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Code a Complete Project in 2 Hours

As indie hackers and solo founders, we often find ourselves juggling multiple tasks at once. You’ve probably felt the frustration of trying to write code for a side project while managing everything else. Wouldn’t it be a game-changer if you could leverage AI to speed up the coding process? Enter GitHub Copilot—an AI-powered coding assistant that can help you whip up a complete project in just two hours. Sounds ambitious? It’s definitely possible, and I’m here to show you how.

Prerequisites for Using GitHub Copilot

Before you dive in, there are a few things you need to have set up:

  1. GitHub Account: You’ll need a GitHub account to use Copilot.
  2. Visual Studio Code (VS Code): This is the code editor where Copilot works best. Download it if you don’t have it yet.
  3. GitHub Copilot Subscription: It costs $10/month or $100/year, and there’s a free trial available.

Step 1: Setting Up Your Environment

  1. Install VS Code: Download and install Visual Studio Code from here.
  2. Install GitHub Copilot: Go to the Extensions Marketplace in VS Code, search for "GitHub Copilot," and install it.
  3. Log in to GitHub: Once installed, log in to your GitHub account through the extension.

Expected Output: You’ll see a Copilot icon in the sidebar, indicating it’s ready to assist you.

Step 2: Define Your Project

Before you start coding, you need to have a clear idea of what project you want to build. For this tutorial, let’s create a simple “To-Do List” application.

  1. Project Structure:
    • index.html
    • style.css
    • script.js

Expected Output: A basic file structure for your project.

Step 3: Coding with GitHub Copilot

Now comes the fun part! You can start writing code, and Copilot will suggest completions.

  1. HTML Structure:

    • Start typing the boilerplate for an HTML file. For example, type <!DOCTYPE html> and hit Enter. Copilot should suggest the rest.
    • Continue to build your HTML by typing out section headers. E.g., type <header> and wait for Copilot to fill in the rest.
  2. CSS Styling:

    • Switch to style.css and begin typing your styles. Type .todo-list { and let Copilot suggest styles.
  3. JavaScript Functionality:

    • Open script.js and start with a function declaration. For example, type function addTask(task) { and see what Copilot suggests for task management.

Expected Output: A fully functional To-Do List app with HTML, CSS, and JavaScript.

Step 4: Testing Your Project

  1. Run Your Application: Open index.html in your browser to see your app in action.
  2. Debugging: If something doesn’t work, use the browser console to identify issues. Copilot can also help with debugging suggestions.

Expected Output: A working To-Do List application with the ability to add and remove tasks.

Troubleshooting Common Issues

  • Copilot Not Suggesting Code: Make sure you’re connected to the internet and have a valid subscription.
  • Suggestions Not Relevant: Try typing a more specific prompt or rephrasing what you’re trying to achieve.

What’s Next?

Once you’ve successfully built your To-Do List app, you can:

  1. Enhance It: Add features like task prioritization or due dates.
  2. Deploy It: Use platforms like Vercel or Netlify to host your app.
  3. Iterate Based on Feedback: Share your app with friends and gather feedback for improvements.

Conclusion: Start Here with GitHub Copilot

Using GitHub Copilot can significantly reduce your coding time, and with a little practice, you can complete projects in just a couple of hours. It’s not just about speeding things up; it’s about enhancing your coding experience. So, if you’re a solo founder or indie hacker, give GitHub Copilot a shot.

What We Actually Use

In our experience, GitHub Copilot is a staple in our coding toolkit. We also recommend checking out tools like Replit for collaborative coding and Figma for design work, but for coding, Copilot is our go-to.

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