Ai Coding Tools

How to Use GitHub Copilot to Boost Your Coding Efficiency in Under 2 Hours

By BTW Team3 min read

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

In short

A step-by-step tutorial on setting up and using GitHub Copilot to enhance your coding efficiency within a short 2-hour window.

If you're a solo founder or indie hacker, you know that time is your most precious resource. Writing code can be a tedious and time-consuming process, especially when you’re juggling multiple projects. That’s where GitHub Copilot comes in. This AI-powered coding assistant can help you write code faster and more efficiently. In this guide, I’ll walk you through how to set up and use GitHub Copilot to boost your coding efficiency, all in under 2 hours.

Time Estimate: 2 Hours

You can finish setting up and learning the basics of GitHub Copilot in about 2 hours. This includes installation, configuration, and a few hands-on practice exercises.

Prerequisites

Before diving in, make sure you have the following:

  • A GitHub account (Free)
  • Visual Studio Code (Free)
  • GitHub Copilot subscription ($10/month after a free trial)
  • Basic understanding of programming concepts

Step-by-Step Setup

1. Install Visual Studio Code

First, download and install Visual Studio Code from here. It’s a free code editor that supports extensions, including GitHub Copilot.

2. Install GitHub Copilot Extension

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

3. Sign In to GitHub

Once the extension is installed, you’ll need to sign in to your GitHub account:

  • Click on the GitHub Copilot icon in the sidebar.
  • Follow the prompts to authenticate with your GitHub account.

4. Enable GitHub Copilot

After signing in, make sure GitHub Copilot is enabled:

  • Go to the settings by clicking on the gear icon in the lower left corner.
  • Search for "Copilot" and ensure it is enabled.

5. Start Coding with Copilot

Now it’s time to see Copilot in action. Here’s how to use it effectively:

Example 1: Autocomplete Code

Just start typing a function or a comment, and GitHub Copilot will suggest code completions. For example, if you type function calculateArea(radius), it might suggest the entire function body.

Example 2: Generate Tests

You can also ask Copilot to write tests for your code. Type a comment like // Test for calculateArea and see how it generates a test function for you.

6. Practice and Iterate

Spend the next hour practicing with different code snippets. Try writing functions, classes, or even documentation comments. The more you use it, the better it becomes at understanding your style and preferences.

Troubleshooting Common Issues

  • Copilot Not Suggesting Code: Ensure that you’re connected to the internet and that Copilot is enabled in your settings.
  • Slow Suggestions: Sometimes, suggestions can be slow. This can happen if you have a weak internet connection. Try refreshing your VS Code or checking your connection.

What’s Next?

Once you’re comfortable with GitHub Copilot, consider exploring more advanced features:

  • Customizing Your Suggestions: You can tailor Copilot’s suggestions by providing specific comments or context.
  • Integrating with Other Tools: Look into how Copilot works with other development tools you might be using, like GitHub Actions or CI/CD pipelines.

Conclusion: Start Here

In my experience, GitHub Copilot has been a game-changer for coding efficiency. It's not perfect, and it won't replace your expertise, but it can significantly speed up your workflow. I recommend starting with the setup outlined above and dedicating some time to practice.

If you’re looking to boost your coding productivity, GitHub Copilot is definitely worth the investment.

What We Actually Use

We use GitHub Copilot for rapid prototyping and writing tests. However, we also keep in mind that it’s not infallible—always review its suggestions for accuracy.

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