Ai Coding Tools

How to Use GitHub Copilot for Coding Projects in Less Than 2 Hours

By BTW Team4 min read

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

In short

A step-by-step tutorial on harnessing the power of GitHub Copilot, enabling you to complete your coding projects efficiently within a 2-hour timeframe.

If you're a solo founder or indie hacker, you know that time is your most valuable resource. You want to ship projects quickly but often find yourself bogged down in coding details. Enter GitHub Copilot, an AI-powered coding assistant that can help you write code faster. The catch? It can feel overwhelming to get started. In this guide, I’ll walk you through how to effectively use GitHub Copilot for your coding projects in under two hours.

What is GitHub Copilot?

GitHub Copilot is an AI coding assistant that suggests code snippets and entire functions as you type. It’s designed to integrate seamlessly with your existing workflow, making it easier to implement features or solve coding problems without losing your train of thought.

Prerequisites

Before diving in, make sure you have the following:

  • A GitHub account (Free)
  • Visual Studio Code installed (Free)
  • GitHub Copilot subscription (Free trial available, $10/mo after)

Setting Up GitHub Copilot

Step 1: Install Visual Studio Code

If you haven’t already, download and install Visual Studio Code. It’s a lightweight yet powerful code editor that works great with GitHub Copilot.

Step 2: Install GitHub Copilot Extension

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side.
  3. Search for "GitHub Copilot" and click "Install."

Step 3: Sign In to GitHub

After installation, you’ll need to sign in to your GitHub account to activate Copilot. Follow the prompts to authenticate.

Expected output: You should see a confirmation that GitHub Copilot is activated in your editor.

Using GitHub Copilot Effectively

Step 4: Start Coding

Open a new file in your preferred programming language. As you begin typing, GitHub Copilot will start suggesting code snippets. Here’s how to get the most out of it:

  1. Write a Comment: Describe what you want to achieve in plain English. For example, “Create a function to calculate the Fibonacci sequence.”

  2. Accept Suggestions: Press Tab to accept suggestions or Esc to dismiss them. You can cycle through multiple suggestions using the arrow keys.

Step 5: Iterate and Improve

As you build your project, don’t hesitate to refine your prompts. If the initial suggestion isn’t quite right, adjust your comment for clarity.

Expected Output

By now, you should have a functional piece of code generated by Copilot. This iterative process can significantly speed up your coding.

Troubleshooting Common Issues

What Could Go Wrong

  1. Inaccurate Suggestions: Sometimes, Copilot may suggest code that doesn't work as expected. Always review the generated code and test it.

  2. Limited Context: If your comments or existing code are vague, Copilot may struggle to provide useful suggestions. Be as descriptive as possible.

Solutions

  • If you find that Copilot isn’t generating useful suggestions, try rewriting your comment.
  • Make sure to keep your project well-structured, as this helps Copilot understand your coding context better.

Pricing Breakdown

| Feature | Pricing | Best For | Limitations | Our Take | |---------------------|-----------------------|-------------------------|-------------------------------------|--------------------------------| | GitHub Copilot | Free trial, $10/mo | Solo developers, small teams | May not understand complex logic | We use this for quick prototyping and learning new languages. |

What's Next?

Now that you know how to set up and use GitHub Copilot, consider integrating it into your daily coding routine. You can also explore other AI coding tools to complement your workflow.

Other AI Coding Tools to Consider

  1. Tabnine: AI-powered code completion. Pricing: Free tier + $12/mo pro. Best for: Developers looking for multi-language support. Limitations: Less context-aware than Copilot.

  2. Kite: Provides code completions and documentation. Pricing: Free + $19.90/mo for Pro. Best for: Python developers. Limitations: Limited language support.

  3. Codeium: Open-source AI code completion tool. Pricing: Free. Best for: Developers seeking cost-effective solutions. Limitations: Less polished than commercial tools.

What We Actually Use

In our experience at Built This Week, we primarily use GitHub Copilot for rapid prototyping and learning new frameworks. While it's not perfect, the speed it offers is invaluable for indie projects.

Conclusion: Start Here

If you're looking to speed up your coding process, GitHub Copilot is a solid choice. It might take a bit of time to get used to its suggestions, but the time saved in coding can be substantial. Start with the setup steps outlined above, and you’ll be on your way to coding projects faster than ever before.

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