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

How to Use AI Coding Tools to Build a Complete Web App in 30 Days

How to Use AI Coding Tools to Build a Complete Web App in 30 Days If you’ve ever thought about building a web app but felt overwhelmed by the coding requirements, you’re not alone.

Jul 14, 20264 min read
Ai Coding Tools

AI Developers: How to Integrate Cursor and GitHub Copilot for Maximum Efficiency

AI Developers: How to Integrate Cursor and GitHub Copilot for Maximum Efficiency As a developer, you’re always on the lookout for tools that can streamline your workflow and make c

Jul 14, 20263 min read
Ai Coding Tools

Top 7 AI Coding Tools for Rapid Prototyping in 2026

Top 7 AI Coding Tools for Rapid Prototyping in 2026 As builders in 2026, we’re always on the lookout for ways to speed up our prototyping process without sacrificing quality. AI co

Jul 14, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which One Enhances Productivity More in 2026?

Cursor vs GitHub Copilot: Which One Enhances Productivity More in 2026? As a solo founder or indie hacker, time is your most valuable resource. You want to write code faster, elimi

Jul 14, 20264 min read
Ai Coding Tools

How to Build a Basic App with AI Tools in Just 2 Hours

How to Build a Basic App with AI Tools in Just 2 Hours Building an app can feel overwhelming, especially for indie hackers and solo founders. The idea of spending weeks or even mon

Jul 14, 20265 min read
Ai Coding Tools

How to Automate Your Coding Process Using AI Tools in Just 30 Minutes

How to Automate Your Coding Process Using AI Tools in Just 30 Minutes As a solo founder or indie hacker, your time is precious. You might find yourself spending countless hours on

Jul 14, 20264 min read