Ai Coding Tools

How to Build Your First Project with GitHub Copilot in 2 Hours

By BTW Team3 min read

How to Build Your First Project with GitHub Copilot in 2 Hours

If you're like most indie hackers or solo founders, you know that time is a precious commodity. You want to build something quickly, but coding can feel like a mountain to climb—especially if you’re just getting started. Enter GitHub Copilot, an AI-powered coding assistant that can help you write code faster and with fewer errors. In this guide, I’ll show you how to leverage GitHub Copilot to build your first project in just 2 hours.

Time Estimate and Prerequisites

Time Estimate

You can finish this project in about 2 hours if you follow along closely.

Prerequisites

  1. A GitHub account (Free)
  2. Visual Studio Code (Free)
  3. GitHub Copilot subscription (Free trial available, then $10/month)
  4. Basic understanding of JavaScript (helpful but not required)

Step 1: Setting Up Your Environment

  1. Install Visual Studio Code: Download and install VS Code.
  2. Install GitHub Copilot:
    • Open VS Code.
    • Go to Extensions (or press Ctrl+Shift+X).
    • Search for "GitHub Copilot" and click "Install".
  3. Sign In to GitHub:
    • Click on the GitHub icon in the sidebar.
    • Sign in to your GitHub account and authorize Copilot.

Expected Output: You should see a "GitHub Copilot is ready" confirmation.

Step 2: Starting Your Project

Choosing a Project Idea

For beginners, a simple To-Do List App is a great starting point. It’s manageable and covers essential coding concepts.

Creating Your Project

  1. Create a New Folder: Open a terminal and create a new directory for your project.
    mkdir todo-app && cd todo-app
    
  2. Initialize a Git Repository:
    git init
    
  3. Create an index.html and app.js File:
    touch index.html app.js
    

Step 3: Building with GitHub Copilot

Writing Your HTML

In index.html, start typing the basic HTML structure. Copilot will suggest completions as you type.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>To-Do List</title>
</head>
<body>
    <h1>My To-Do List</h1>
    <input type="text" id="task" placeholder="Add a new task...">
    <button id="add-task">Add Task</button>
    <ul id="tasks"></ul>
    <script src="app.js"></script>
</body>
</html>

Writing Your JavaScript

Now, switch to app.js. Start by typing a comment about what you want to do, and let Copilot fill in the rest.

// Function to add a new task to the list

Copilot will suggest a complete function. Accept its suggestion or modify it as needed.

Expected Output

You should now have a basic HTML structure and JavaScript for adding tasks.

Troubleshooting Section

Common Issues

  • Copilot Doesn’t Suggest Anything: Make sure you’re typing relevant comments or code. If it still doesn’t work, try restarting VS Code.
  • Code Errors: If you encounter syntax errors, make sure you’re following JavaScript syntax rules. Copilot can’t catch every mistake.

What’s Next?

Once you have your basic To-Do List functioning, consider adding features like:

  • Task deletion
  • Task completion toggle
  • Local storage to save tasks

Conclusion: Start Here

If you're just getting started with coding, GitHub Copilot can significantly reduce the time it takes to build your first project. By following this guide, you should have a functioning To-Do List app in just 2 hours.

Recommendation: Start your journey by diving into a simple project. Explore Copilot's capabilities and don’t hesitate to experiment with your own ideas!

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

Top 7 AI Coding Tools Beginners Should Try in 2026

Top 7 AI Coding Tools Beginners Should Try in 2026 As a beginner in coding, the sheer volume of tools available can be overwhelming. You want to write code, but the learning curve

Mar 10, 20265 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which AI Tool Performs Better for Developers in 2026?

Cursor vs GitHub Copilot: Which AI Tool Performs Better for Developers in 2026? As a developer, choosing the right AI coding assistant can feel like navigating a maze. With tools l

Mar 10, 20264 min read
Ai Coding Tools

How to Use GitHub Copilot to Cut Coding Time by 50% in 2026

How to Use GitHub Copilot to Cut Coding Time by 50% in 2026 As a solo founder or indie hacker, time is your most precious resource. You’re juggling multiple roles, and every minute

Mar 10, 20264 min read
Ai Coding Tools

Why Most Developers Overrate AI Coding Tools in 2026

Why Most Developers Overrate AI Coding Tools in 2026 As an indie hacker or solo founder, you’ve probably heard the buzz around AI coding tools. They promise to revolutionize develo

Mar 10, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which is the Better AI Coding Assistant in 2026?

Cursor vs GitHub Copilot: Which is the Better AI Coding Assistant in 2026? In 2026, the landscape of AI coding assistants has evolved dramatically. As indie hackers, solo founders,

Mar 10, 20263 min read
Ai Coding Tools

Cursor vs. Codeium: The Ultimate AI Coding Tool Showdown

Cursor vs. Codeium: The Ultimate AI Coding Tool Showdown (2026) As a solo founder or indie hacker, you know that finding the right coding tools can either make or break your produc

Mar 10, 20263 min read