Ai Coding Tools

How to Use GitHub Copilot to Complete Your Next Project in Under 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Complete Your Next Project in Under 2 Hours

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.

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

How to Code Your First App Using AI Tools in 1 Hour

How to Code Your First App Using AI Tools in 1 Hour Have you ever thought about building your own app but felt overwhelmed by the coding part? You're not alone. Many aspiring indie

Jun 22, 20265 min read
Ai Coding Tools

Why Most Developers Overrate GitHub Copilot: Myths Debunked

Why Most Developers Overrate GitHub Copilot: Myths Debunked As a developer, it’s hard not to be captivated by the promise of AI tools like GitHub Copilot. The idea of having an AI

Jun 22, 20264 min read
Ai Coding Tools

How to Boost Your Coding Speed by 30% Using AI Tools in Just 2 Weeks

How to Boost Your Coding Speed by 30% Using AI Tools in Just 2 Weeks As a solo founder or side project builder, you know that time is your most precious resource. If you could boos

Jun 22, 20265 min read
Ai Coding Tools

Cursor vs Codeium: Which AI Coding Tool Delivers Better Results for Developers?

Cursor vs Codeium: Which AI Coding Tool Delivers Better Results for Developers? As a solo founder or indie hacker, choosing the right AI coding tool can feel overwhelming, especial

Jun 22, 20263 min read
Ai Coding Tools

Cursor vs Codeium: Which AI Tool Boosts Coding Speed More Effectively?

Cursor vs Codeium: Which AI Tool Boosts Coding Speed More Effectively? (2026) As indie hackers and solo founders, we often find ourselves juggling multiple projects, each demanding

Jun 22, 20263 min read
Ai Coding Tools

How to Write Your First Code with AI in Just 2 Hours

How to Write Your First Code with AI in Just 2 Hours If you've ever thought about learning to code but felt overwhelmed by the prospect, you're not alone. Many aspiring developers

Jun 22, 20264 min read