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

Why GitHub Copilot is Overrated: Contrarian Perspectives on AI Coding Assistants

Why GitHub Copilot is Overrated: Contrarian Perspectives on AI Coding Assistants As a solo founder or indie hacker, you’re always on the lookout for tools that genuinely boost your

Mar 16, 20264 min read
Ai Coding Tools

How to Build Your First App Using AI Tools in Under 3 Hours

How to Build Your First App Using AI Tools in Under 3 Hours If you're a solo founder or an indie hacker, the thought of building an app might seem daunting. But what if I told you

Mar 16, 20265 min read
Ai Coding Tools

Top 5 AI Tools for Beginners in 2026: Your Launchpad

Top 5 AI Tools for Beginners in 2026: Your Launchpad As a beginner diving into the world of coding in 2026, the landscape is flooded with AI tools promising to make your journey sm

Mar 16, 20264 min read
Ai Coding Tools

Supabase vs Firebase for AI-Driven Projects: A 2026 Comparison

Supabase vs Firebase for AIDriven Projects: A 2026 Comparison As we dive into 2026, the landscape for building AIdriven applications has evolved significantly. If you're an indie h

Mar 16, 20264 min read
Ai Coding Tools

How to Build a Simple App with GitHub Copilot in 2 Hours

How to Build a Simple App with GitHub Copilot in 2026 Building an app can feel like a daunting task, especially if you’re a beginner. You might be asking yourself if you have the r

Mar 16, 20264 min read
Ai Coding Tools

How to Write Code 3x Faster Using AI in Just 30 Minutes

How to Write Code 3x Faster Using AI in Just 30 Minutes As a solo founder or indie hacker, you're probably familiar with the struggle of balancing coding with everything else on yo

Mar 16, 20265 min read