Ai Coding Tools

How to Use GitHub Copilot to Accelerate Your Coding Projects in 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Accelerate Your Coding Projects in 2 Hours

If you're an indie hacker or side project builder, you know the pain of spending hours on coding tasks that could be automated or accelerated. Enter GitHub Copilot, an AI-powered coding assistant that can help you streamline your workflow. In this guide, I’ll show you how to set it up and use it effectively in just two hours.

Prerequisites: What You Need Before You Start

Before diving in, make sure you have:

  • A GitHub account (Free or Pro)
  • Visual Studio Code installed on your machine
  • The GitHub Copilot extension for Visual Studio Code (available in the marketplace)
  • Basic familiarity with JavaScript or Python (we’ll focus on these languages)

Step 1: Setting Up GitHub Copilot (30 Minutes)

  1. Install Visual Studio Code: If you haven’t already, download and install Visual Studio Code.

  2. Sign Up for GitHub: Create a GitHub account if you don’t have one. You can use the free tier, but note that Copilot is a paid feature.

  3. Install GitHub Copilot:

    • Open Visual Studio Code.
    • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side or pressing Ctrl+Shift+X.
    • Search for "GitHub Copilot" and click "Install."
  4. Sign in to GitHub: Once installed, you’ll need to authenticate your GitHub account. Follow the prompts to allow Visual Studio Code to access your account.

  5. Subscription: As of May 2026, GitHub Copilot costs $10/month or $100/year after a free trial of 30 days. Make sure to check if any discounts are available for students or open-source maintainers.

Step 2: Understanding Copilot's Features (30 Minutes)

GitHub Copilot can do a lot, but knowing its strengths will help you use it more effectively. Here’s a breakdown:

| Feature | Description | Pricing | Best For | Limitations | |----------------------|--------------------------------------------------|------------------------------|--------------------------------|----------------------------------------------| | Code Suggestions | Autocompletes lines of code based on context | $10/month | Quick coding tasks | Can suggest incorrect code or security issues | | Function Generation | Generates whole functions based on comments | $10/month | Writing boilerplate code | May not match your exact requirements | | Documentation | Suggests inline comments and documentation | $10/month | Clarifying code for others | Limited context understanding | | Language Support | Supports multiple languages including JavaScript, Python, and more | $10/month | Multi-language projects | Performance varies by language | | Testing Assistance | Provides test cases based on your code | $10/month | Ensuring code reliability | Not perfect for complex test scenarios |

Step 3: Using Copilot Effectively (30 Minutes)

Now that you’re set up, let’s get practical. Here’s how to use Copilot in your coding projects:

  1. Start Coding: Open a new file in VS Code, and begin typing your function or class. Copilot will suggest completions.

  2. Write Comments: If you want a specific function, start with a comment describing what it should do. For example:

    // Create a function to sum two numbers
    
  3. Accept Suggestions: When Copilot suggests code, you can hit Tab to accept it or continue typing to see other suggestions.

  4. Iterate: Review the code generated by Copilot. It’s essential to test and modify the suggestions to fit your needs.

  5. Refine Outputs: If the output isn’t what you expected, rephrase your comment or provide more context. This helps Copilot generate better suggestions.

Troubleshooting: What Could Go Wrong

  • Inaccurate Suggestions: Sometimes, Copilot can suggest code that doesn’t work. Always test the generated code.
  • Security Concerns: Be cautious of the security implications of using AI-generated code; review it for vulnerabilities.
  • Language Limitations: Copilot may not perform as well with less common languages or frameworks.

What's Next: Building on Copilot

Once you’ve got the hang of using GitHub Copilot, consider these next steps:

  • Explore Advanced Features: Look into how Copilot can assist with API integrations or complex algorithms.
  • Combine with Other Tools: Use it alongside linting tools and code formatters to maintain code quality.
  • Share Your Experience: Join communities like Indie Hackers to share what you've learned and discover new strategies.

Conclusion: Start Here

In just two hours, you can set up GitHub Copilot and begin using it to accelerate your coding projects. Remember, while Copilot is a powerful tool, it's not a substitute for your coding skills. Use it as a partner to enhance your productivity.

What We Actually Use

In our experience, GitHub Copilot has been a game-changer for quickly generating boilerplate code and handling repetitive tasks. We also find it useful for generating unit tests, though we always double-check its suggestions.

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

How to Build an AI-Powered Code Review System in 2 Hours

How to Build an AIPowered Code Review System in 2026 Imagine spending hours sifting through code reviews, only to find that the same issues keep cropping up. As indie hackers or so

May 7, 20264 min read
Ai Coding Tools

Comparing GitHub Copilot vs Codeium: Which is the Best AI Coding Assistant for 2026?

Comparing GitHub Copilot vs Codeium: Which is the Best AI Coding Assistant for 2026? As we dive into 2026, the landscape of AI coding assistants has evolved significantly. For indi

May 7, 20263 min read
Ai Coding Tools

How to Solve Common Programming Problems with AI in Under 30 Minutes

How to Solve Common Programming Problems with AI in Under 30 Minutes As indie hackers and solo founders, we often face programming challenges that can derail our progress. Whether

May 7, 20264 min read
Ai Coding Tools

Bolt.new vs GitHub Copilot: 2026 Showdown

Bolt.new vs GitHub Copilot: 2026 Showdown As a solo founder or indie hacker, you know that choosing the right coding assistant can save you hours of frustration and improve your pr

May 7, 20263 min read
Ai Coding Tools

Why Most Developers Overrate AI Coding Tools: 3 Common Misconceptions

Why Most Developers Overrate AI Coding Tools: 3 Common Misconceptions As a developer, it’s hard not to get swept up in the hype surrounding AI coding tools. They promise to boost p

May 7, 20263 min read
Ai Coding Tools

How to Use GitHub Copilot for Daily Coding Tasks in Under 1 Hour

How to Use GitHub Copilot for Daily Coding Tasks in Under 1 Hour As indie hackers and solo founders, we often find ourselves juggling multiple tasks, and coding is a critical one.

May 7, 20263 min read