Ai Coding Tools

How to Use GitHub Copilot to Boost Your Coding in 2 Hours

By BTW Team3 min read

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

In short

A step-by-step guide that shows how to integrate GitHub Copilot into your coding workflow and maximize productivity in just two hours.

If you’ve ever stared at a blank screen, unsure of how to start coding a feature, you’re not alone. Many indie hackers and solo founders face this challenge. Enter GitHub Copilot, an AI-powered coding assistant that can significantly boost your productivity. In this guide, I’ll walk you through how to set up and use GitHub Copilot effectively in just 2 hours.

What is GitHub Copilot?

GitHub Copilot is an AI tool built by GitHub and OpenAI that provides code suggestions as you type. It can help you write code faster by offering context-aware suggestions and even completing entire functions based on a few keywords.

Pricing Breakdown

  • Free: 30-day trial for new users
  • Individual: $10/month after trial
  • Business: $19/user/month, includes advanced features

Best for: Developers looking to speed up their coding process and reduce the time spent on boilerplate code.

Limitations: Copilot isn't perfect; it can suggest outdated or incorrect code, and it may require you to review its suggestions carefully.

Prerequisites

Before you get started, make sure you have the following:

  1. A GitHub account (free)
  2. Visual Studio Code installed (free)
  3. Basic knowledge of JavaScript, Python, or another supported language

Step-by-Step Setup

Step 1: Install GitHub Copilot

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the sidebar or pressing Ctrl+Shift+X.
  3. Search for "GitHub Copilot" and click "Install."

Expected Output: You’ll see a Copilot icon in the bottom right corner of your editor once it's installed.

Step 2: Log into GitHub

  1. After installation, click on the Copilot icon.
  2. Follow the prompts to sign in to your GitHub account.

Expected Output: A confirmation message indicating that Copilot is connected.

Step 3: Start Coding

  1. Open a new JavaScript or Python file.
  2. Begin typing a function, e.g., function calculateSum(a, b) {.
  3. Wait for Copilot to suggest a completion.

Expected Output: Copilot will suggest a complete function based on the context you've provided.

Step 4: Review and Adjust Suggestions

  1. Use the arrow keys to cycle through suggestions.
  2. Accept a suggestion by pressing Tab or adjust it as needed.

Troubleshooting: If Copilot isn't providing useful suggestions, try changing your input or providing more context in comments.

What Could Go Wrong

  • Incorrect Suggestions: Sometimes, Copilot might suggest code that doesn't work as expected. Always review and test the code.
  • Language Limitations: If you’re coding in a less popular language, suggestions may be less relevant.

What's Next

Once you’ve set up Copilot, consider exploring its advanced features like:

  • Customizing settings: Adjust how suggestions appear and how often you receive them.
  • Integrating with other tools: Use it alongside debugging tools to enhance your workflow.

Conclusion

GitHub Copilot can be a game-changer for your coding productivity, especially if you're working on side projects or indie apps. Start by setting it up in Visual Studio Code and experimenting with its suggestions. You can easily boost your coding output in just a couple of hours.

Start here: If you’re new to Copilot, begin with a simple project and let the AI assist you.

What We Actually Use

In our experience, we use GitHub Copilot primarily for rapid prototyping and boilerplate code generation. It saves us time, but we always double-check its outputs.

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