Ai Coding Tools

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

By BTW Team4 min read

How to Use GitHub Copilot to Improve Your Coding in Just 2 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!

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

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read