Ai Coding Tools

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

By BTW Team3 min read

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

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.

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

Cursor AI vs GitHub Copilot: Which is Better for Indie Developers in 2026?

Cursor AI vs GitHub Copilot: Which is Better for Indie Developers in 2026? As an indie developer, choosing the right coding assistant can make or break your productivity. In 2026,

Aug 11, 20263 min read
Ai Coding Tools

Why Most Developers Overrate AI Coding Tools: Busting the Myths

Why Most Developers Overrate AI Coding Tools: Busting the Myths As a solo developer or indie hacker, it's easy to get swept up in the hype surrounding AI coding tools. The promise

Aug 11, 20264 min read
Ai Coding Tools

How to Code Your First AI Application in 30 Minutes

How to Code Your First AI Application in 30 Minutes If you're a solo founder or indie hacker looking to dive into the world of AI, the thought of coding your first AI application c

Aug 11, 20264 min read
Ai Coding Tools

AI Coding Tools Comparison: Cursor vs GitHub Copilot – Which is Better for Beginners?

AI Coding Tools Comparison: Cursor vs GitHub Copilot – Which is Better for Beginners? As a solo founder or indie hacker, diving into coding can feel like an uphill battle, especial

Aug 11, 20264 min read
Ai Coding Tools

Why Your AI Coding Tool Won't Improve Your Productivity: 5 Common Myths

Why Your AI Coding Tool Won't Improve Your Productivity: 5 Common Myths As a solo founder or indie hacker, you’ve probably been tempted by the latest AI coding tools promising to r

Aug 10, 20264 min read
Ai Coding Tools

How to Build a Complete Web App Using AI Coding Tools in Just 5 Days

How to Build a Complete Web App Using AI Coding Tools in Just 5 Days Building a web app can feel overwhelming, especially if you're a solo founder or indie hacker. With countless c

Aug 10, 20264 min read