Ai Coding Tools

How to Use GitHub Copilot to Write Code Faster: A 30-Minute Guide

By BTW Team3 min read

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

In short

Learn how to harness the power of GitHub Copilot to speed up your coding workflow within just 30 minutes.

If you’re a solo founder or indie hacker, you know how precious time is. Writing code can be a slow and tedious process, especially when you’re juggling multiple responsibilities. Enter GitHub Copilot: an AI-powered code assistant designed to speed up your coding workflow. In this guide, I’ll show you how to set up and use GitHub Copilot to write code faster, all in about 30 minutes.

Time Estimate: 30 Minutes

You can finish this setup in about 30 minutes if you follow the steps closely.

Prerequisites

  1. GitHub Account: You need an account to access Copilot.
  2. Visual Studio Code: The most popular IDE where Copilot integrates seamlessly.
  3. GitHub Copilot Subscription: As of August 2026, it costs $10/month after a 30-day free trial.

Step-by-Step Setup

1. Install Visual Studio Code

Download and install Visual Studio Code (VS Code) from here. It’s free and works on all major operating systems.

2. Sign Up for GitHub Copilot

  • Go to the GitHub Copilot page.
  • Click on "Try Copilot" and log in with your GitHub account.
  • Start your 30-day free trial. If you decide to continue, it will be $10/month.

3. Install the Copilot Extension

  • Open VS Code.
  • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
  • Search for "GitHub Copilot" and click on "Install."

4. Enable Copilot

After installation, you might need to enable GitHub Copilot in your workspace settings. Go to:

  • File > Preferences > Settings (or Code > Preferences > Settings on macOS).
  • Search for "Copilot" and ensure it's enabled.

5. Start Coding

Now you’re ready to use Copilot! Here’s how to make the most of it:

  • Write Comments: Start by writing a comment describing what you want the code to do. For example, // Function to fetch user data.
  • Accept Suggestions: As you type, Copilot will suggest code. You can accept suggestions by pressing Tab or reject them with Esc.
  • Iterate: If the first suggestion isn’t perfect, keep typing or modify your comment for a better result.

Example Output

Let’s say you write:

// Function to calculate the Fibonacci series

Copilot might suggest:

function fibonacci(n) {
  let a = 0, b = 1, temp;
  while (n-- > 0) {
    temp = a;
    a = b;
    b = temp + b;
  }
  return a;
}

Troubleshooting Common Issues

  • No Suggestions: If Copilot isn’t suggesting code, make sure you’re connected to the internet and that your subscription is active.
  • Slow Performance: Sometimes, Copilot can lag. Restarting VS Code usually helps.

What’s Next?

Once you’re comfortable using GitHub Copilot, consider exploring its advanced features, such as:

  • Multi-line suggestions: Type a few lines and see how Copilot can complete functions for you.
  • Language Support: Copilot supports multiple programming languages, so try it out with Python, Java, or even HTML/CSS.

Conclusion

GitHub Copilot can significantly speed up your coding process, allowing you to focus on building your product rather than getting bogged down in syntax. Start with the setup we discussed, and soon, you’ll find yourself coding faster and more efficiently.

If you’re just getting started with Copilot, I recommend focusing on simple tasks to see how it can assist you. As you gain confidence, you can tackle more complex coding challenges.

What We Actually Use

In our experience, we rely heavily on GitHub Copilot for rapid prototyping and coding assistance. It's been a game-changer for us, especially when working on side projects with tight deadlines.

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