Ai Coding Tools

How to Use GitHub Copilot to Generate 90% of Your Code in 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Generate 90% of Your Code in 2 Hours

If you’re like most indie hackers, you know that writing code can be time-consuming and sometimes frustrating. The idea of spending hours on boilerplate code or repetitive tasks can be a major roadblock. What if I told you that you could leverage AI to generate up to 90% of your code in just 2 hours? Enter GitHub Copilot—your new coding assistant that can help you focus on what really matters: building your product.

In this guide, I’ll walk you through how to effectively use GitHub Copilot to supercharge your coding efficiency.

Prerequisites: What You Need to Get Started

Before diving in, make sure you have:

  • A GitHub account (Free)
  • Visual Studio Code installed (Free)
  • GitHub Copilot subscription (Starts at $10/month)
  • Basic understanding of the programming language you’ll be using

Time Estimate: 2 Hours to Get Set Up

You can finish the initial setup and start generating code snippets in about 2 hours. This includes installing the necessary tools and getting familiar with Copilot’s capabilities.

Step-by-Step Guide to Using GitHub Copilot

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.
  3. Search for "GitHub Copilot" and click "Install."
  4. Sign in with your GitHub account to activate the extension.

2. Setting Up Your Project

  • Create a new project or open an existing one.
  • Make sure you have a clear idea of what features or functionalities you want to implement.

3. Start Coding with Copilot

  • Begin typing a comment that describes the function you want to create. For example, “// Function to calculate the sum of two numbers.”
  • Wait for Copilot to suggest code. You’ll see a gray suggestion appear inline.
  • Press Tab to accept the suggestion or keep typing to see alternative suggestions.

4. Review and Modify Generated Code

  • Always review the generated code. While Copilot can generate a lot of code quickly, it’s crucial to ensure it meets your needs.
  • Modify the suggestions as necessary to fit your project’s context. This might include changing variable names or tweaking logic.

5. Iterate and Expand

  • Use Copilot iteratively. As you build out features, keep using comments to guide the AI.
  • For example, after implementing a function, you might write “// Add error handling” to get suggestions for that next step.

6. Troubleshooting Common Issues

  • What could go wrong? Sometimes, Copilot may generate incorrect or inefficient code.
    • Solution: Always test the generated code thoroughly and refactor as needed.
  • Limited context: If it doesn’t understand your project structure, it might give irrelevant suggestions.
    • Solution: Provide more context in your comments or code.

Pricing Breakdown

| Tool/Service | Pricing | Best For | Limitations | Our Take | |----------------------|----------------------------------|-----------------------------|----------------------------------------------|-------------------------------------| | GitHub Copilot | $10/month, $100/year | Rapid code generation | May produce inaccurate code, limited context | Essential for speeding up development | | Visual Studio Code | Free | Code editing | Requires extensions for full functionality | Great IDE that integrates well | | GitHub | Free (with paid tiers for private repos) | Version control | Limited features in free plan | Vital for collaboration |

What We Actually Use

In our experience, we primarily use GitHub Copilot for generating boilerplate code and simple functions. It saves us hours of manual coding, especially for repetitive tasks. However, we still rely on manual coding for complex algorithms and critical business logic.

Conclusion: Start Here

If you’re looking to speed up your coding process, GitHub Copilot is a solid investment. With the right setup, you can generate a substantial amount of code in just 2 hours. Start by installing Copilot, set up your project, and let the AI do the heavy lifting while you focus on building your product.

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

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read