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

How to Write Your First Program with AI Tools in Under 1 Hour

How to Write Your First Program with AI Tools in Under 1 Hour Ever felt overwhelmed by the idea of writing your first program? You’re not alone. Many aspiring developers think codi

May 9, 20264 min read
Ai Coding Tools

7 Game-Changing AI Coding Tools for Senior Developers 2026

7 GameChanging AI Coding Tools for Senior Developers 2026 As senior developers, we often find ourselves buried under layers of complexity—code reviews, debugging, and the constant

May 9, 20264 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which AI Tool Will Save You More Time?

Cursor vs GitHub Copilot: Which AI Tool Will Save You More Time? As indie hackers and solo founders, we’re all looking for ways to maximize productivity without breaking the bank.

May 9, 20263 min read
Ai Coding Tools

How to Build a Simple Web App Using AI Tools in Just 4 Hours

How to Build a Simple Web App Using AI Tools in Just 4 Hours Building a web app can feel like an insurmountable task, especially for indie hackers and solo founders juggling multip

May 9, 20264 min read
Ai Coding Tools

Hover vs Codeium: Which AI Coding Tool is Right for You in 2026?

Hover vs Codeium: Which AI Coding Tool is Right for You in 2026? As a developer in 2026, you're probably feeling the pressure to keep up with the rapid advancements in AI coding to

May 9, 20263 min read
Ai Coding Tools

How to Use GitHub Copilot to Increase Your Coding Speed by 50% in Just 1 Week

How to Use GitHub Copilot to Increase Your Coding Speed by 50% in Just 1 Week As a solo founder or indie hacker, every minute counts. You’re juggling multiple projects, and the las

May 9, 20264 min read