Ai Coding Tools

30-Minute Guide to Using GitHub Copilot for Your First Project

By BTW Team3 min read

30-Minute Guide to Using GitHub Copilot for Your First Project

If you're a solo founder or indie hacker looking to speed up your coding process, GitHub Copilot might just be the tool you didn't know you needed. But how do you actually use it effectively for your first project? In this guide, I'll walk you through the setup and usage of GitHub Copilot in just 30 minutes. Let's dive in!

Prerequisites: What You Need to Get Started

Before we jump into the setup, here are the prerequisites you'll need:

  • GitHub Account: Sign up for free if you don’t have one.
  • Visual Studio Code: Download and install VS Code (free).
  • GitHub Copilot Subscription: $10/month or $100/year after a 60-day free trial.

Step 1: Setting Up GitHub Copilot

  1. Install Visual Studio Code: If you haven’t already, grab it from Visual Studio Code's website.
  2. Install GitHub Copilot Extension:
    • Open VS Code and navigate to the Extensions view (Ctrl+Shift+X).
    • Search for "GitHub Copilot" and click "Install".
  3. Sign In to GitHub: After installation, you’ll be prompted to sign in to your GitHub account. Follow the on-screen instructions.

Expected output: You should see a prompt confirming that GitHub Copilot is enabled.

Step 2: Creating Your First Project

  1. Create a New Repository: Go to GitHub and create a new repository. Let’s call it my-first-project.
  2. Clone the Repository: Clone it to your local machine:
    git clone https://github.com/yourusername/my-first-project.git
    cd my-first-project
    
  3. Open in VS Code: Launch VS Code and open the cloned project folder.

Expected output: Your project structure should appear in the Explorer sidebar.

Step 3: Writing Your First Code with Copilot

  1. Create a New File: Inside your project directory, create a new .js file (e.g., app.js).

  2. Start Typing a Function: Begin typing a function definition, such as:

    function add(a, b) {
    

    After typing the opening brace {, GitHub Copilot will suggest code completions.

  3. Accept Suggestions: Hit Tab to accept suggestions or keep typing for more refined options.

Expected output: You should see Copilot generate the full function body based on your input.

Troubleshooting: What Could Go Wrong?

  • No Suggestions Appearing: If you don’t see any suggestions, ensure Copilot is enabled in the settings (File > Preferences > Settings > Extensions > GitHub Copilot).
  • Suggestions Not Relevant: Sometimes the suggestions may not fit your needs. Keep typing more context or comments to guide Copilot.

What's Next: Building Out Your Project

Now that you've created a simple function, you can continue building out your project. Here are a few ideas:

  • Add More Functions: Use Copilot to help with other functions, such as a subtract or multiply function.
  • Implement a Basic User Interface: If you're building a web app, consider using Copilot to help generate HTML and CSS.
  • Test Your Code: Use Copilot to write test cases for your functions for better reliability.

Conclusion: Start Here with GitHub Copilot

GitHub Copilot can significantly speed up your development process, especially for smaller projects. It’s not perfect, but it’s a solid tool for getting you started. If you’re on a budget, try the 60-day free trial, and see if it fits into your workflow before committing to the $10/month.

To recap, here's what you should do next:

  1. Set up GitHub Copilot in VS Code.
  2. Start a simple project and let Copilot assist you in coding.
  3. Experiment with different coding tasks to see how it can help.

Now go build something great with GitHub Copilot!

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