Ai Coding Tools

How to Use GitHub Copilot to Finish Your First Project in 2 Hours

By BTW Team4 min read

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

In short

A step-by-step guide on utilizing GitHub Copilot efficiently to accelerate the completion of your initial coding project.

As a solo founder or indie hacker, time is precious. You want to ship your projects quickly without compromising on quality. Enter GitHub Copilot: an AI-powered coding assistant that can help you finish your first coding project in just 2 hours. It’s not magic, but with the right approach, you can harness its capabilities to speed up your development process.

Prerequisites: What You Need Before You Start

Before diving into using GitHub Copilot, ensure you have the following:

  • GitHub Account: Sign up for a free account if you don’t have one already.
  • Visual Studio Code: Download and install VS Code as your code editor.
  • GitHub Copilot Subscription: Copilot is priced at $10/month after a 60-day free trial. You can start testing it right away.
  • Basic Coding Knowledge: Familiarity with JavaScript or Python will help, but Copilot can guide you even if you're a beginner.

Step 1: Setting Up Your Environment (15 minutes)

  1. Install Visual Studio Code:

    • Download it from Visual Studio Code.
    • Open VS Code and install the GitHub Copilot extension from the marketplace.
  2. Activate GitHub Copilot:

    • Once installed, log in with your GitHub account and activate your Copilot subscription.
  3. Create a New Project:

    • Open a new folder in VS Code for your project. For example, let’s call it “MyFirstProject.”

Step 2: Define Your Project Scope (15 minutes)

Before you start coding, take some time to outline what your project will do. A simple to-do list app is a great starter project. Define the following:

  • Features: Add tasks, remove tasks, mark tasks as completed.
  • Technology Stack: For simplicity, we’ll use HTML, CSS, and JavaScript.

Step 3: Start Coding with GitHub Copilot (60 minutes)

  1. Create an HTML File:

    • Start by creating an index.html file. Type <!DOCTYPE html> and let Copilot suggest the rest of the structure.
    <!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>
        <link rel="stylesheet" href="styles.css">
    </head>
    <body>
        <h1>My To-Do List</h1>
        <div id="app"></div>
        <script src="script.js"></script>
    </body>
    </html>
    
  2. Create a CSS File:

    • Create a styles.css file. Start typing body { and see how Copilot completes your styling.
  3. Create a JavaScript File:

    • In script.js, start defining your functions. For example, type function addTask(task) { and see how Copilot suggests code for adding tasks to your list.
  4. Iterate with Copilot:

    • Use comments to guide Copilot. For instance, write // Create a function that removes a task and watch it generate the code.

Step 4: Testing Your Code (20 minutes)

  1. Run Your Project:

    • Open the index.html file in your browser to see your app in action. Make sure all features work as expected.
  2. Debugging:

    • If something doesn’t work, use the console to check for errors. You can ask Copilot for help by typing comments like // How do I fix this error?.

What Could Go Wrong?

  • Copilot Suggestions: Sometimes, Copilot's suggestions may not be accurate. Always double-check the code it generates.
  • Dependencies: If you plan to use libraries (like jQuery), ensure to include them correctly in your HTML.
  • Browser Compatibility: Test your app in different browsers to avoid compatibility issues.

What's Next?

Once you finish your project, consider deploying it using platforms like GitHub Pages or Netlify. This will give you a chance to share your work and gather feedback. If you want to expand your skills, try adding features like user authentication or a database.

Conclusion: Start Here

Using GitHub Copilot can significantly speed up your coding process, allowing you to finish your first project in just 2 hours. By setting up your environment, clearly defining your project scope, and leveraging Copilot's suggestions effectively, you can create something functional and learn in the process.

If you’re ready to dive in, give GitHub Copilot a shot. It’s a practical tool that can help you go from zero to a working project quickly.

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