Ai Coding Tools

How to Use GitHub Copilot Effectively in 2 Hours

By BTW Team4 min read

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

In short

A practical guide on setting up and effectively using GitHub Copilot to enhance your coding productivity in just two hours.

If you're a solo founder or indie hacker, you know that time is your most precious resource. You want to code faster, not get bogged down by tedious tasks or syntax errors. Enter GitHub Copilot, the AI-powered coding assistant designed to boost your coding productivity. But how do you actually use it effectively? In this guide, I’ll walk you through how to get the most out of GitHub Copilot in just two hours.

Prerequisites: What You Need to Get Started

Before diving in, make sure you have the following:

  • A GitHub Account: You’ll need an account to access Copilot.
  • Visual Studio Code: This is the primary editor that Copilot integrates with.
  • GitHub Copilot Subscription: Pricing is $10/month after a free trial for the first 30 days. It’s a small investment for the time you'll save.
  • Basic Coding Skills: You should be comfortable with the programming language you're using (JavaScript, Python, etc.).

Step 1: Installing GitHub Copilot (15 Minutes)

  1. Open Visual Studio Code: If you don’t have it installed, download it from here.
  2. Install the GitHub Copilot Extension:
    • Go to the Extensions view (Ctrl+Shift+X).
    • Search for "GitHub Copilot" and click "Install."
  3. Authenticate: After installation, you’ll be prompted to log in using your GitHub account. Follow the on-screen instructions to authenticate.

Expected Output: You should see a Copilot icon in the bottom right corner of VS Code once installed.

Step 2: Configuring Copilot Settings (15 Minutes)

  1. Access Settings: Go to File -> Preferences -> Settings.
  2. Search for Copilot: Adjust settings like suggestion delay, inline suggestions, and more to suit your coding style.
  3. Enable/Disable Features: You can also toggle features such as "Show suggestions on demand" if you'd rather not have suggestions pop up automatically.

Expected Output: Copilot will now provide suggestions based on your preferences.

Step 3: Writing Code with Copilot (1 Hour)

  1. Start a New File: Create a new JavaScript or Python file.
  2. Begin Typing: As you type, Copilot will start suggesting code. For example, if you start typing a function, it might suggest the entire implementation.
  3. Accepting Suggestions: Use the Tab key to accept a suggestion or keep typing for different suggestions.
  4. Ask for Help: You can write comments like “// function to calculate Fibonacci” and Copilot will generate the code for you.

Expected Output:

You should have a fully functional code snippet with minimal typing.

Step 4: Reviewing and Testing Suggestions (20 Minutes)

  1. Check the Code: Always review the code Copilot suggests. While it’s generally accurate, it can make mistakes or generate inefficient code.
  2. Run Tests: If you have unit tests set up, run them to ensure the suggestions are working as intended.
  3. Refactor as Necessary: Sometimes, a suggestion might need some tweaking. Don’t hesitate to improve upon what Copilot generates.

Expected Output: A working piece of code that has been tested and validated.

Troubleshooting: What Could Go Wrong

  • Unintuitive Suggestions: If Copilot suggests something that doesn’t make sense, try rephrasing your comment or giving it more context.
  • Integration Issues: If Copilot isn’t showing suggestions, double-check your installation and authentication.
  • Pricing Confusion: Make sure you know that after the first month, it’s $10/month.

What’s Next: Maximizing Your Copilot Experience

After you’ve gotten the hang of the basics, consider exploring more advanced features:

  • Pair Programming: Use Copilot as a pair programmer for larger projects.
  • Experiment with Other Languages: Try using it with languages you’re less familiar with to see how it can assist you.
  • Stay Updated: GitHub regularly updates Copilot, so keep an eye on new features and improvements.

Conclusion: Start Here

If you're looking to boost your coding productivity, start by installing GitHub Copilot and following these steps. In just two hours, you can transform the way you code, making your development process faster and more efficient. The key is to practice and integrate it into your daily workflow.

What We Actually Use

In our experience, we rely heavily on GitHub Copilot for rapid prototyping and coding tasks. It’s especially useful for boilerplate code and repetitive functions. While it’s not perfect, it significantly speeds up our workflow.

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