Ai Coding Tools

How to Use GitHub Copilot to Improve Your Coding Productivity in 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Improve Your Coding Productivity in 2 Hours

If you're a solo founder or indie hacker, you know the grind of coding can be overwhelming. You're juggling multiple tasks and don’t have the luxury of a full development team. Enter GitHub Copilot, an AI-powered coding assistant that can help you speed up your workflow. But can it really make a difference? In this guide, I'll show you how to set it up and leverage its features in just two hours.

Prerequisites: What You'll Need

Before diving in, make sure you have the following:

  • GitHub Account: You’ll need this to access Copilot.
  • Visual Studio Code: This is the IDE where you'll install the Copilot extension.
  • Basic Coding Knowledge: Familiarity with JavaScript, Python, or whatever language you'll be using.
  • GitHub Copilot Subscription: Pricing is currently $10/month after a 30-day free trial.

Step 1: Setting Up GitHub Copilot (30 Minutes)

  1. Create a GitHub Account: If you don't have one yet, go to GitHub and sign up.

  2. Install Visual Studio Code: Download and install VS Code from here.

  3. Install GitHub Copilot:

    • Open VS Code.
    • Go to Extensions (Ctrl+Shift+X).
    • Search for "GitHub Copilot" and click Install.
  4. Sign In: After installation, you'll be prompted to sign in with your GitHub account to enable Copilot.

  5. Activate Your Subscription: If you’re past the trial, make sure your subscription is active to continue using the service.

Step 2: Exploring Copilot Features (30 Minutes)

GitHub Copilot can do a lot, but it’s essential to know its strengths and limitations. Here’s a brief overview:

What GitHub Copilot Does:

  • Code Suggestions: Offers real-time code suggestions based on your context.
  • Function Autocompletion: Completes functions and methods based on comments or preceding code.
  • Multi-language Support: Works with several programming languages, including JavaScript, Python, and Go.

Limitations:

  • Contextual Understanding: Sometimes struggles with complex logic or specific domain knowledge.
  • Quality of Suggestions: Not every suggestion will be optimal; you'll need to review and sometimes refactor the code.
  • Learning Curve: Takes time to get used to its suggestions and how to phrase your prompts effectively.

Step 3: Practical Coding Session (30 Minutes)

Let’s put Copilot to the test by building a simple REST API. Follow these steps:

  1. Create a New Project:

    • Open your terminal.
    • Run mkdir my-api && cd my-api && npm init -y (for a Node.js API).
  2. Install Express:

    • Run npm install express.
  3. Create Your Main File:

    • Create a file named app.js.
  4. Use Comments to Guide Copilot:

    • Start by typing // Create an Express app and let Copilot suggest the next lines.
    • Accept suggestions by hitting the Tab key.
  5. Build Out Your API:

    • Add routes and middleware by typing comments. For example, // Define a GET route for /users.

Expected Output:

By the end of this session, you should have a basic API running. You can test it using Postman or curl to see how Copilot helped speed up your coding.

Troubleshooting Common Issues

  • Copilot Not Suggesting: Ensure you are connected to the internet and that your subscription is active.
  • Suggestions Are Off: If suggestions seem irrelevant, try rephrasing your prompts or comments.

What's Next?

Now that you’ve set up GitHub Copilot and built your first API, consider integrating it into your daily coding routine. Use it for:

  • Code Reviews: Get suggestions for refactoring.
  • Learning New Libraries: Ask Copilot to generate examples using unfamiliar libraries.

Conclusion: Start Here

GitHub Copilot can be a tremendous asset for indie hackers and solo founders looking to boost their coding productivity. In just two hours, you can set it up, understand its capabilities, and start coding more efficiently. Remember to keep an eye on its limitations and always review the code it generates.

What We Actually Use: In our workflow, we rely on GitHub Copilot for quick prototyping and code suggestions, especially when working on new features. However, we always double-check the output for accuracy and efficiency.

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 a Small App in 2 Hours Using AI Tools

How to Build a Small App in 2 Hours Using AI Tools Building an app can feel like a daunting task, especially when you're short on time and resources. But what if I told you that yo

May 11, 20265 min read
Ai Coding Tools

Cursor vs. GitHub Copilot: The Ultimate Face-Off for Advanced Developers

Cursor vs. GitHub Copilot: The Ultimate FaceOff for Advanced Developers As an advanced developer, you likely find yourself caught between a rock and a hard place when it comes to c

May 11, 20263 min read
Ai Coding Tools

How to Build Your First App in Just 30 Minutes Using AI Tools

How to Build Your First App in Just 30 Minutes Using AI Tools Building your first app can feel overwhelming, especially if you're a beginner. The traditional development process ca

May 11, 20265 min read
Ai Coding Tools

How to Master AI Tooling for Coding in Just 30 Days

How to Master AI Tooling for Coding in Just 30 Days In 2026, the landscape of coding is rapidly evolving, and AI tools are at the forefront of that transformation. As indie hackers

May 11, 20264 min read
Ai Coding Tools

Top 5 AI-Powered Code Review Tools Compared: Which Is Best for Dev Teams?

Top 5 AIPowered Code Review Tools Compared: Which Is Best for Dev Teams? As a developer, you know that code reviews can be a doubleedged sword. They improve code quality but can al

May 11, 20263 min read
Ai Coding Tools

How to Optimize Your Coding in 30 Minutes with AI Tools

How to Optimize Your Coding in 30 Minutes with AI Tools (2026) As a solo founder or indie hacker, time is your most precious resource. When coding, it’s easy to get bogged down in

May 11, 20264 min read