Ai Coding Tools

How to Use GitHub Copilot to Complete Your Next Project in Under 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 harnessing GitHub Copilot to streamline your coding tasks and complete your next project within just 2 hours. Perfect for solo developers looking to maximize efficiency.

If you’ve ever found yourself staring blankly at your code editor, wondering how to get started on your next project, you’re not alone. As indie hackers and solo founders, we often juggle multiple tasks, and coding can feel like a daunting mountain to climb. But what if I told you that you could leverage AI to not just help you code faster but also enhance your overall productivity? Enter GitHub Copilot. In this guide, I’ll walk you through how to use GitHub Copilot effectively to complete a coding project in under 2 hours.

Prerequisites for Getting Started

Before we dive in, here’s what you’ll need:

  • A GitHub account: Sign up at GitHub if you don’t have one already.
  • Visual Studio Code (VS Code): Download and install it from VS Code.
  • GitHub Copilot subscription: As of June 2026, pricing is $10/month for individuals, with a 30-day free trial available.
  • Basic familiarity with coding: You should know some programming fundamentals.

Step 1: Install GitHub Copilot

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side.
  3. Search for "GitHub Copilot" and click "Install."
  4. After installation, sign in with your GitHub account to activate Copilot.

Expected output: You should see Copilot's suggestions pop up as you start typing code.

Step 2: Set Up Your Project

  1. Create a new folder for your project on your local machine.
  2. Open this folder in VS Code.
  3. Initialize a new Git repository by running git init in the terminal.

Expected output: You should see a .git folder created in your project directory.

Step 3: Start Coding with Copilot

  1. Begin by creating a new file (e.g., app.js).
  2. Write a comment describing the function you want to create. For example, // This function calculates the sum of two numbers.
  3. Watch as Copilot suggests code that completes your function.

Tips for Getting the Best Suggestions

  • Be specific in your comments.
  • If a suggestion isn’t quite right, hit Tab to accept it or keep typing to refine it.
  • Use Copilot’s suggestions as a starting point and iterate on them.

Step 4: Testing Your Code

  1. After writing your code, create a simple test file (e.g., test.js).
  2. Write tests to validate your functions. Use comments to guide Copilot.
  3. Run your tests using Node.js or your preferred testing framework.

Expected output: Your tests should either pass or fail, giving you a clear indication of whether your code works.

Step 5: Troubleshooting Common Issues

What Could Go Wrong

  • Copilot doesn’t understand your comments: Make them more descriptive.
  • Syntax errors: Double-check the suggested code; AI can make mistakes.
  • Performance issues: If your project is complex, consider breaking it down into smaller functions.

Solutions

  • Refine comments for clarity.
  • Check documentation for the programming language you’re using.
  • Use debugging tools in VS Code.

Step 6: What’s Next?

Once you’ve completed your project, consider the following:

  • Deploy your application: Use platforms like Heroku or Vercel.
  • Iterate based on user feedback: Get your product in front of users as quickly as possible.
  • Explore more advanced features: GitHub Copilot can help with more complex tasks like API integration.

Conclusion: Start Coding with GitHub Copilot Today

Using GitHub Copilot can drastically cut down your coding time, making it feasible to complete projects in under 2 hours. Start by ensuring you have the necessary tools, follow the steps outlined above, and remember to iterate on Copilot’s suggestions.

In our experience, Copilot shines when you're working on well-defined tasks with clear comments. However, it's not perfect and might require you to double-check its outputs for accuracy.

So, if you’re looking to speed up your coding process and get more done, give GitHub Copilot a shot.

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