Ai Coding Tools

How to Use GitHub Copilot to Write Code 3x Faster in 30 Minutes

By BTW Team3 min read

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

In short

A step-by-step guide on leveraging GitHub Copilot to dramatically increase coding speed and efficiency in your workflow.

As a solo founder or indie hacker, you know the pressure of shipping your projects quickly and efficiently. Time is money, and every minute spent coding is a minute you could be validating your idea or talking to users. Enter GitHub Copilot—an AI-powered coding assistant that claims to help you write code three times faster. But does it really live up to the hype? In this guide, I’ll show you how to leverage GitHub Copilot to boost your coding productivity in just 30 minutes.

Prerequisites

Before diving in, make sure you have the following:

  • A GitHub account (free tier is sufficient)
  • A code editor installed (Visual Studio Code is recommended)
  • GitHub Copilot subscription ($10/mo after a 60-day free trial)
  • Basic knowledge of JavaScript or Python (we'll use these languages as examples)

Step 1: Setting Up GitHub Copilot

  1. Install Visual Studio Code: If you don’t have it installed yet, download and install VS Code.
  2. Install the GitHub Copilot Extension:
    • Open VS Code.
    • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar.
    • Search for "GitHub Copilot" and click "Install."
  3. Sign in to GitHub: After installation, you will be prompted to sign in to your GitHub account. Follow the instructions to authenticate.

Expected Output: You should see a small Copilot icon in the bottom right corner of your VS Code editor.

Step 2: Start Coding with Copilot

Now that you’re set up, let’s start coding. Here’s how to maximize your efficiency:

Using Copilot’s Suggestions

  1. Write a Comment: Start by typing a comment that describes the function you want to create. For example:
    // Function to calculate the sum of an array
    
  2. Trigger Suggestions: Press Ctrl + Enter (Windows) or Cmd + Enter (Mac) to trigger Copilot’s suggestions. You’ll see a dropdown with code suggestions.
  3. Select the Suggestion: If you like the suggestion, just hit Tab to accept it.

Expected Output: Copilot will generate a function that calculates the sum of an array based on your comment.

Example Code Generation

Let’s say you want to create a function that fetches user data from an API. Type the comment:

// Function to fetch user data from an API

Hit Ctrl + Enter, and Copilot might suggest something like:

async function fetchUserData(url) {
    const response = await fetch(url);
    return response.json();
}

Step 3: Troubleshooting Common Issues

While Copilot is powerful, it’s not perfect. Here are a few common issues and how to resolve them:

  • Irrelevant Suggestions: Sometimes, Copilot suggests code that doesn’t make sense. If you find this happening frequently, try to be more specific in your comments.
  • Inaccurate Code: Always review and test the generated code. Copilot doesn’t guarantee correctness, and you’ll need to ensure that the logic is sound.

What's Next?

Once you’ve grasped the basics, consider these next steps:

  • Explore Advanced Features: Learn how to use Copilot for more complex coding tasks, such as writing tests or creating entire classes.
  • Integrate with GitHub Actions: Automate deployments by integrating your Copilot-generated code with GitHub Actions.

Conclusion: Start Here

If you’re looking to speed up your coding process, GitHub Copilot is a solid investment. With a subscription at just $10/mo after the free trial, it’s a cost-effective tool for indie hackers and solo founders. We’ve found it particularly useful for generating boilerplate code and handling repetitive tasks, but remember to review the suggestions critically.

In our experience, you can realistically expect to cut down your coding time significantly—if you use it wisely.

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