Ai Coding Tools

How to Use GitHub Copilot to Code Your First Application in 2 Hours

By BTW Team3 min read

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

In short

A step-by-step tutorial on leveraging GitHub Copilot's capabilities to create your first app efficiently within just 2 hours.

If you’ve ever sat staring at a blank screen, unsure of where to start with your first app, you’re not alone. The daunting task of coding can feel overwhelming, especially if you’re new to programming. But what if I told you that you could build your first application in just two hours using GitHub Copilot? It sounds ambitious, but with the right approach, it’s entirely feasible. In this guide, I'll walk you through the steps to leverage GitHub Copilot effectively.

Prerequisites: What You Need Before You Start

Before diving in, ensure you have the following:

  1. GitHub Account: You’ll need to sign up for GitHub if you haven’t already.
  2. Visual Studio Code (VS Code): This is a free code editor that integrates seamlessly with GitHub Copilot.
  3. GitHub Copilot Subscription: As of June 2026, GitHub Copilot costs $10/month after a free trial. Make sure you have access to it.
  4. Basic Understanding of JavaScript: While not mandatory, knowing the basics will help you understand the code you’ll be writing.

Step 1: Set Up Your Environment (30 Minutes)

  1. Install Visual Studio Code: Download and install VS Code from the official site.
  2. Install GitHub Copilot: In VS Code, go to Extensions (Ctrl+Shift+X), search for "GitHub Copilot," and install it.
  3. Sign In: Open the command palette (Ctrl+Shift+P) and type "GitHub: Sign In" to authenticate your GitHub account.
  4. Create a New Project: Open a new folder in VS Code and create an index.js file.

Step 2: Start Coding Your Application (1 Hour)

Now, let’s get to the fun part: coding with Copilot.

1. Plan Your Application

Decide on a simple application idea, like a "To-Do List" app. This will keep things manageable.

2. Use Copilot to Generate Code

Start typing comments in your index.js file to instruct Copilot on what you want. For example:

// Create a function to add a task

Copilot will suggest code snippets. Accept the suggestions (you can press Tab to insert them).

3. Build Step-by-Step

Continue using comments to guide Copilot. For example:

// Create a function to display tasks
// Create a function to remove a task

You can also ask Copilot to generate HTML and CSS for your app. For instance, typing:

<!-- Create a simple HTML structure -->

Copilot will help fill in the details.

4. Test Your Application

Once you've written your code, run it in the integrated terminal in VS Code. Use the command:

node index.js

Make sure everything works as intended. If there are bugs, Copilot can also suggest fixes.

Troubleshooting: What Could Go Wrong?

  • Code Errors: Copilot may generate code that's not perfect. If something breaks, review the suggestions and tweak as necessary.
  • Understanding Suggestions: Sometimes, Copilot may suggest code that doesn’t fit your needs. Don’t hesitate to modify the suggestions to suit your app.

What's Next: Building on Your Foundation

Congratulations! You’ve just coded your first application. Here’s how to keep the momentum going:

  1. Enhance Your App: Add features like task prioritization or deadlines.
  2. Learn More JavaScript: The more you know, the better you can leverage Copilot.
  3. Join Communities: Engage with other developers through forums or platforms like Discord to share your journey.

Conclusion: Start Here

Using GitHub Copilot can significantly reduce the time it takes to build your first application. By following the steps above, you can create a simple app in just two hours. Remember, coding is a skill that improves with practice. So dive in, experiment, and don’t be afraid to break things along the way.

If you’re ready to get started, grab your GitHub account and VS Code, and let GitHub Copilot guide you through your coding journey.

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