Ai Coding Tools

How to Use GitHub Copilot to Automate Your Coding 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 setting up and leveraging GitHub Copilot to significantly reduce coding time and enhance efficiency.

If you're like me, coding can sometimes feel like a chore. Between debugging and writing boilerplate code, it's easy to lose sight of the fun in building. That's where GitHub Copilot comes in. This AI-powered coding assistant can automate a lot of the grunt work, allowing you to focus on the creative aspects of your projects. In this guide, I’ll walk you through how to set it up and use it effectively in just one hour.

Prerequisites: What You Need

Before diving in, make sure you have the following:

  1. GitHub Account: Sign up for free if you don’t have one.
  2. Visual Studio Code (VS Code): You can download it for free from the official site.
  3. GitHub Copilot Subscription: As of July 2026, it costs $10/month after a 60-day free trial.

Setting Up GitHub Copilot: Step-by-Step

Step 1: Install Visual Studio Code (10 minutes)

  • Download and install VS Code.
  • Open the application and create a new workspace.

Step 2: Install the GitHub Copilot Extension (10 minutes)

  1. Go to the Extensions view in VS Code (Ctrl+Shift+X).
  2. Search for "GitHub Copilot."
  3. Click "Install."

Step 3: Sign In to GitHub (5 minutes)

  1. Open any file in VS Code.
  2. You'll be prompted to sign in to GitHub. Follow the instructions.

Step 4: Start Coding with Copilot (35 minutes)

  1. Basic Autocompletion: Start typing a function or comment, and Copilot will suggest completions. For example, type function calculateSum( and watch Copilot suggest the rest.

  2. Generating Boilerplate Code: Need a REST API? Just type // Create REST API for and give it a brief description. Copilot will generate the basic structure.

  3. Refactoring Code: If you have existing functions, you can refactor them by typing // Refactor this function to followed by your requirements.

  4. Testing Code: Write a comment like // Write tests for this function and let Copilot generate test cases.

Expected Outputs

By the end of this hour, you should have:

  • A small project with several functions created using Copilot.
  • A clearer understanding of how to leverage Copilot for automation.
  • A foundation for future coding projects where Copilot can assist you.

Troubleshooting: What Could Go Wrong?

  • Suggestions Not Appearing: Make sure you’re signed into GitHub and the extension is enabled.
  • Poor Suggestions: Sometimes, Copilot may not understand your intent. Try rephrasing your comments or prompts.
  • Performance Issues: If VS Code becomes sluggish, consider disabling other extensions temporarily.

What’s Next: Maximizing Your Use of Copilot

  1. Explore Advanced Features: Check out Copilot Labs for experimental features.
  2. Join Communities: Engage with other developers using GitHub Copilot to share tips and tricks.
  3. Experiment with Different Languages: Copilot supports multiple programming languages; try it out for your next project.

Conclusion: Start Here

Now that you know how to set up and use GitHub Copilot, I encourage you to give it a shot. The initial setup takes just an hour, and the time you save on repetitive coding tasks will be well worth it. Whether you're building a side project or working on a full-fledged application, Copilot can help you code more efficiently.

What We Actually Use

We primarily use GitHub Copilot for quick prototyping and generating boilerplate code. It saves us a ton of time, especially for repetitive tasks. However, we still double-check the generated code for quality and security.

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