Ai Coding Tools

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

By BTW Team4 min read

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

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.

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

Why Cursor is Overrated for Indie Developers

Why Cursor is Overrated for Indie Developers As an indie developer, finding the right tools can feel overwhelming, especially with the constant influx of new AI coding assistants c

Jul 26, 20264 min read
Ai Coding Tools

How to Boost Your Productivity Using AI Coding Tools in Just 30 Minutes

How to Boost Your Productivity Using AI Coding Tools in Just 30 Minutes As a solo founder or indie hacker, you know that time is your most precious resource. In 2026, AI coding too

Jul 26, 20264 min read
Ai Coding Tools

AI Coding Assistants: GitHub Copilot vs. Codeium - Which Is Better for Experts?

AI Coding Assistants: GitHub Copilot vs. Codeium Which Is Better for Experts? As expert developers, we often find ourselves in a constant battle against time and complexity. Codin

Jul 26, 20263 min read
Ai Coding Tools

Vercel vs Netlify: Which AI Coding Hosting is Better in 2026?

Vercel vs Netlify: Which AI Coding Hosting is Better in 2026? As we step into 2026, the landscape for AI coding hosting has evolved significantly. For indie hackers, solo founders,

Jul 26, 20263 min read
Ai Coding Tools

How to Boost Your Coding Speed by 50% with AI Tools in Just 2 Weeks

How to Boost Your Coding Speed by 50% with AI Tools in Just 2 Weeks As indie hackers and solo founders, we know the struggle: coding takes time, and time is often in short supply.

Jul 26, 20264 min read
Ai Coding Tools

How to Improve Your Coding Skills Using AI Tools in 4 Weeks

How to Improve Your Coding Skills Using AI Tools in 4 Weeks If you're a beginner looking to improve your coding skills, you might feel overwhelmed by the sheer volume of resources

Jul 26, 20265 min read