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

Why Most Developers Overlook GitHub Copilot: The Truth

Why Most Developers Overlook GitHub Copilot: The Truth As a developer, you’ve probably heard the buzz around GitHub Copilot. Yet, many of us still hesitate to adopt it in our daily

May 29, 20263 min read
Ai Coding Tools

Why Most Developers Overlook the Power of Cursor AI and What You’re Missing

Why Most Developers Overlook the Power of Cursor AI and What You’re Missing As developers, we often fall into the trap of thinking we need to build everything from scratch or rely

May 29, 20264 min read
Ai Coding Tools

How to Automate Your Code Reviews with AI Tools in 60 Minutes

How to Automate Your Code Reviews with AI Tools in 60 Minutes If you're a solo founder or indie hacker, you know that time is a precious resource. Spending hours on code reviews ca

May 29, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which AI Coding Tool is Best for Expert Developers in 2026?

Cursor vs GitHub Copilot: Which AI Coding Tool is Best for Expert Developers in 2026? As an expert developer, you’re likely familiar with the constant pressure to code faster and m

May 29, 20263 min read
Ai Coding Tools

How to Develop Your First App with AI Tools in Just 2 Weeks

How to Develop Your First App with AI Tools in Just 2 Weeks Developing your first app can feel like climbing a mountain, especially if you're not a seasoned coder. But what if I to

May 29, 20264 min read
Ai Coding Tools

How to Integrate GitHub Copilot into Your Workflow for 30% Faster Development

How to Integrate GitHub Copilot into Your Workflow for 30% Faster Development As a solo founder or indie hacker, time is your most precious resource. You want to ship features quic

May 29, 20263 min read