Ai Coding Tools

How to Use GitHub Copilot to Improve Your Coding in Just 2 Hours

By BTW Team4 min read

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

In short

A quick tutorial on leveraging GitHub Copilot's features to enhance your coding skills and productivity in under two hours.

If you’re like many indie hackers and solo founders, you know the struggle of writing code efficiently while juggling multiple projects. Enter GitHub Copilot, an AI-powered coding assistant that can help you write code faster and smarter. In this guide, I'll walk you through how to set up and effectively use GitHub Copilot to level up your coding skills in just two hours.

Time Estimate

You can finish setting up and learning the basics of GitHub Copilot in about 2 hours.

Prerequisites

Before diving in, make sure you have:

  • A GitHub account (free or paid)
  • An IDE that supports GitHub Copilot (e.g., Visual Studio Code)
  • Basic understanding of coding and familiarity with your preferred programming language

Step-by-Step Setup

1. Install GitHub Copilot

To get started, you’ll need to install GitHub Copilot in your IDE. Here’s how:

  • Open Visual Studio Code.
  • Go to the Extensions tab (or press Ctrl+Shift+X).
  • Search for GitHub Copilot.
  • Click on Install to add the extension.

Expected Output: After installation, you should see a Copilot icon in your IDE.

2. Sign In to GitHub

Once installed, you need to authenticate:

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

Expected Output: A confirmation message that you are signed in.

3. Start Coding with Copilot

Now that you’re set up, let’s see how Copilot can assist you.

  • Open a new file and start typing a comment about what you want to achieve. For example, type // Function to calculate factorial of a number.
  • Watch as Copilot suggests code snippets.

Expected Output: Copilot should generate a function that calculates the factorial based on your comment.

4. Review and Edit Suggestions

Copilot's suggestions are not always perfect. Here’s how to refine them:

  • If the suggestion isn’t quite right, you can edit it directly.
  • Use the keyboard shortcut Tab to accept a suggestion or Esc to dismiss it.

Expected Output: You’ll learn to quickly assess and tweak the suggestions to fit your needs.

5. Explore Advanced Features

Once you’re comfortable with the basics, try these advanced features:

  • Multi-line Suggestions: Type a function header and hit Enter to see multi-line suggestions.
  • Context Awareness: Copilot learns from your code, so the more you use it, the better it gets at suggesting relevant snippets.

Expected Output: You’ll see more tailored suggestions that align with your coding style.

6. Troubleshooting Common Issues

While using GitHub Copilot, you might encounter some hiccups:

  • Slow Suggestions: If suggestions are slow, check your internet connection.
  • Inaccurate Code: Always review the generated code; Copilot can sometimes suggest outdated or insecure coding practices.

7. What's Next?

After you've got the hang of GitHub Copilot, consider exploring other AI coding tools to complement your workflow. Here are some alternatives worth checking out:

| Tool Name | Pricing | Best For | Limitations | Our Take | |-------------------|---------------------|-------------------------------|-----------------------------------|----------------------------------------| | Tabnine | Free tier + $12/mo | AI code completion | Limited language support | We use this for quick suggestions. | | Codeium | Free | Free AI assistant | Fewer integrations | Great for beginners, but less robust. | | Replit | Free + $20/mo pro | Collaborative coding | Limited offline capabilities | We don’t use this for solo projects. | | Sourcery | Free + $10/mo pro | Code refactoring | Limited to Python | Great for improving existing code. | | Polycoder | Free | Open-source code completion | Not as polished as Copilot | We use it for fun experiments. | | Codex | Pricing varies | Advanced AI coding | Requires deep technical knowledge | We don’t use this due to complexity. |

Conclusion

Using GitHub Copilot can significantly enhance your coding productivity in just two hours. Start by installing it, learning how to leverage its suggestions, and tweaking your workflow based on your specific needs.

Start here: Follow the setup steps above, and give Copilot a try. You might find it’s the coding assistant you didn’t know you needed!

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