Ai Coding Tools

How to Use GitHub Copilot for Coding Projects in Under 2 Hours

By BTW Team3 min read

How to Use GitHub Copilot for Coding Projects in Under 2 Hours

If you're like me, you know the struggle of staring at a blank screen, waiting for inspiration to strike. Enter GitHub Copilot: the AI-powered coding assistant that promises to supercharge your development workflow. But does it really deliver? In this guide, I’ll show you how to set up and use GitHub Copilot effectively in under two hours, so you can get back to building your projects without the headache.

Time Estimate: 1.5 to 2 Hours

You can finish the setup and get familiar with GitHub Copilot in about 1.5 to 2 hours. This includes installing the tool, configuring it for your coding environment, and running through some practical examples.

Prerequisites

Before diving in, ensure you have:

  • A GitHub account (free)
  • Visual Studio Code installed (free)
  • Basic knowledge of JavaScript or Python (as our examples will use these languages)

Step-by-Step Setup Guide

Step 1: Install GitHub Copilot

  1. Open Visual Studio Code (VS Code).
  2. Go to the Extensions marketplace by clicking on the Extensions icon in the left sidebar or pressing Ctrl+Shift+X.
  3. Search for "GitHub Copilot" and click on "Install."
  4. Once installed, you’ll see a prompt to sign in to your GitHub account. Follow the authentication steps.

Step 2: Configure GitHub Copilot

  1. After signing in, navigate to Settings by clicking on the gear icon in the lower-left corner.
  2. In the settings search bar, type "Copilot" to find the settings related to GitHub Copilot.
  3. You can enable or disable suggestions, change the inline suggestion style, and manage your subscription.

Step 3: Start Coding

  1. Open a new JavaScript or Python file in VS Code.
  2. Begin typing a function or a comment describing what you want to do. For example, type // Function to calculate the factorial of a number and hit Enter.
  3. Watch as GitHub Copilot suggests code. You can accept suggestions by pressing Tab or Enter, or you can cycle through different suggestions using Alt + [ or Alt + ].

Step 4: Experiment with Complex Code

Try writing a more complex function, such as:

// Function to sort an array of objects by a property

GitHub Copilot will generate a sorting function for you. You can tweak the generated code as needed.

Expected Output

Upon completing these steps, you should have a functional code snippet generated by GitHub Copilot. You’ll notice how it can help you write boilerplate code, manage repetitive tasks, and even suggest optimizations.

What Could Go Wrong

  • Incomplete Suggestions: Sometimes, Copilot may not provide complete or accurate code. Always review the suggestions critically.
  • Learning Curve: If you're new to coding, relying too much on Copilot can hinder your learning process. Use it as a tool, not a crutch.

What's Next?

After getting familiar with GitHub Copilot, consider integrating it into your daily coding routine. Explore more advanced features, such as:

  • Pair Programming: Use Copilot to assist in real-time coding sessions.
  • Documentation: Let Copilot help you generate comments and documentation as you code.

Conclusion: Start Here

Using GitHub Copilot can significantly boost your productivity, especially if you're working on side projects or indie apps. Start with the setup process outlined above, and don’t hesitate to experiment with different coding scenarios. Remember, it's a tool to help you, not replace you.

What We Actually Use: In our experience, we primarily use GitHub Copilot for drafting functions and managing repetitive tasks. It’s a solid addition to our coding toolkit, especially when we’re short on time.

Follow Our Building Journey

Weekly podcast episodes on tools we're testing, products we're shipping, and lessons from building in public.

Subscribe

Never miss an episode

Subscribe to Built This Week for weekly insights on AI tools, product building, and startup lessons from Ryz Labs.

Subscribe
Ai Coding Tools

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read