Ai Coding Tools

How to Use GitHub Copilot to Improve Your Coding in Just 30 Minutes

By BTW Team3 min read

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

In short

A step-by-step tutorial on leveraging GitHub Copilot's capabilities to enhance your coding efficiency and creativity in under half an hour.

If you're a solo founder or indie hacker, you know how precious time is. Spending hours debugging or writing boilerplate code can drain your productivity. Enter GitHub Copilot, an AI-powered coding assistant that can help you write code faster and more efficiently. In just 30 minutes, you can get a handle on how to use Copilot to enhance your coding experience. Let’s dive in!

Prerequisites: What You Need Before Getting Started

To make the most of this tutorial, you’ll need:

  • A GitHub account (free)
  • Visual Studio Code (VS Code) installed on your computer
  • GitHub Copilot subscription ($10/month after a free trial)
  • Basic knowledge of JavaScript, Python, or any language you want to code in

Step 1: Install GitHub Copilot

  1. Open Visual Studio Code: Launch the application on your computer.
  2. Install GitHub Copilot Extension:
    • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
    • Search for "GitHub Copilot" and click "Install."
  3. Sign In to GitHub: After installation, you’ll be prompted to sign in to your GitHub account. Follow the authentication steps.

Expected Output:

Once installed, you should see the GitHub Copilot icon in your VS Code status bar, indicating that it’s ready to assist you.

Step 2: Writing Your First Code with Copilot

Now that Copilot is set up, let’s write some code together.

  1. Create a New File: Start a new JavaScript file (e.g., app.js).
  2. Write a Comment: Type a comment that describes the function you want to create, such as // Function to calculate the factorial of a number.
  3. Trigger Copilot: After writing your comment, press Enter. Copilot will suggest code based on your comment. You can accept the suggestion by pressing Tab.

Expected Output:

You should see a complete factorial function generated by Copilot.

Step 3: Iterating on Code with Copilot’s Suggestions

Let’s enhance the functionality of your code:

  1. Add More Comments: Write another comment, like // Function to calculate the Fibonacci sequence.
  2. View Suggestions: As you type, Copilot will offer multiple suggestions. You can cycle through these by pressing Ctrl + [ or Ctrl + ].
  3. Review and Modify: Accept a suggestion or modify it to suit your needs.

Expected Output:

You will have a more complex piece of code, and you’ll get a sense of how Copilot can adapt to your coding style.

Troubleshooting: What Could Go Wrong?

  • No Suggestions Appear: Ensure that you’re connected to the internet as Copilot relies on cloud-based AI.
  • Suggestions Don’t Make Sense: Sometimes, Copilot may misinterpret your comment. Try rephrasing your comment for better results.
  • Performance Issues: If VS Code is lagging, check if other extensions are consuming resources.

What's Next: Further Exploration with Copilot

Once you’re comfortable with the basics, consider these next steps:

  • Explore more complex coding tasks with Copilot, such as building APIs or integrating libraries.
  • Experiment with different programming languages to see how Copilot adapts.
  • Integrate Copilot into your daily coding practices to maximize efficiency.

Conclusion: Start Here with GitHub Copilot

In just 30 minutes, you can install and start using GitHub Copilot to improve your coding efficiency. This tool can significantly reduce the time spent writing boilerplate code and debugging, making it a worthwhile investment for indie hackers and solo founders.

What We Actually Use:

We use GitHub Copilot for rapid prototyping and generating utility functions in our projects. It’s particularly helpful for quick iterations and brainstorming new ideas.

If you’re ready to take your coding to the next level, give GitHub Copilot a try. With its AI capabilities, you’ll find yourself coding faster and with fewer errors.

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