Ai Coding Tools

How to Use GitHub Copilot to Write Code in 1 Hour

By BTW Team3 min read

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

In short

A step-by-step tutorial on how to effectively set up and utilize GitHub Copilot in just 1 hour to generate code snippets and improve your coding efficiency.

If you're a solo founder or side project builder, you know that time is often your most valuable resource. Learning to code can feel overwhelming, particularly when you have a million other tasks on your plate. Enter GitHub Copilot, an AI-powered coding assistant that can help you write code faster and more efficiently. In this guide, I’ll show you how to set up and use GitHub Copilot in just one hour.

Time Estimate

You can finish this setup in about 1 hour, depending on your familiarity with coding environments.

Prerequisites

  • A GitHub account (Free)
  • Visual Studio Code (VS Code) installed on your machine
  • GitHub Copilot subscription ($10/month after a 30-day free trial)

Step-by-Step Setup

Step 1: Create a GitHub Account

If you don't have a GitHub account yet, head over to GitHub and sign up for a free account. This will give you the access you need to use GitHub Copilot.

Step 2: Install Visual Studio Code

Download and install Visual Studio Code from the official site. This is the code editor where you'll be using Copilot.

Step 3: Install the GitHub Copilot Extension

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

Step 4: Sign in to GitHub Copilot

After installation, you’ll need to sign in to GitHub Copilot:

  1. Click on the Copilot icon in the Activity Bar.
  2. Follow the prompts to authenticate with your GitHub account.

Step 5: Start Writing Code

Now that you’re set up, create a new file in VS Code and start typing. For example, if you type function greet(name), Copilot will suggest a complete function based on what you’re trying to do. You can accept suggestions by pressing Tab.

Step 6: Experiment with Commands

Try using comments to guide Copilot. For example, type // Create a function to sum two numbers and watch how Copilot responds with a function that does just that.

Expected Outputs

As you work through this, you should see Copilot suggesting code snippets that can help you complete your tasks faster. The quality of suggestions improves with context—so the more information you provide, the better the output.

Troubleshooting

  • Issue: Copilot isn’t suggesting code.

    • Solution: Make sure you are connected to the internet and that your GitHub Copilot subscription is active.
  • Issue: Suggestions aren’t relevant.

    • Solution: Provide more context or try to rephrase your request.

What's Next

Once you've set up GitHub Copilot, you can dive deeper into its features. Explore how it can help with testing, documentation, and even debugging.

If you find Copilot helpful, consider integrating it into your daily workflow. For example, using it for repetitive tasks can save you hours of coding time each week.

Conclusion

In just one hour, you can harness the power of GitHub Copilot to boost your coding efficiency. Start with the setup steps outlined here, and don't be afraid to experiment with various coding tasks.

Recommendation: If you're looking for a way to expedite your coding process, start with GitHub Copilot. It’s a game-changer for indie hackers and solo founders who need to maximize their output without the steep learning curve of traditional coding.

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