Ai Coding Tools

How to Set Up GitHub Copilot in Under 30 Minutes for Your First Project

By BTW Team4 min read

How to Set Up GitHub Copilot in Under 30 Minutes for Your First Project

If you're a developer looking to boost your productivity, GitHub Copilot is an AI-powered coding assistant that can help you write code faster and with fewer errors. But setting it up for your first project can feel daunting, especially if you're short on time. The good news? You can get GitHub Copilot up and running in under 30 minutes. Here’s how.

Prerequisites: What You Need Before Starting

Before diving into the setup process, make sure you have the following:

  1. GitHub Account: You need an active GitHub account to use Copilot. If you don’t have one, sign up at GitHub.com.
  2. Visual Studio Code (VS Code): Download and install Visual Studio Code, as Copilot is integrated into this popular code editor.
  3. GitHub Copilot Subscription: GitHub Copilot costs $10/month after a free trial. Make sure you’re ready to subscribe if you want to keep using it after the trial period.

Step 1: Install Visual Studio Code

First things first, if you haven’t already installed Visual Studio Code, do it now. Here’s how:

  1. Go to the Visual Studio Code download page.
  2. Download the version suitable for your operating system (Windows, macOS, or Linux).
  3. Follow the installation instructions.

Expected Output: You should have VS Code ready to go, looking something like this:

VS Code Main Interface

Step 2: Install GitHub Copilot Extension

Now that you have VS Code installed, it’s time to get Copilot set up:

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
  3. Search for "GitHub Copilot" in the Extensions Marketplace.
  4. Click the “Install” button next to the GitHub Copilot extension.

Expected Output: The Copilot icon should appear in your VS Code sidebar.

Step 3: Sign In to GitHub

After installing the extension, you need to sign in to your GitHub account:

  1. Click on the GitHub Copilot icon.
  2. A prompt will appear to sign in. Click on “Sign in” and follow the authentication process.
  3. Authorize the GitHub Copilot extension to access your account.

Expected Output: You should see a confirmation message indicating that you’re signed in.

Step 4: Start a New Project

Now that Copilot is installed and configured, let’s create a new project:

  1. Open a new terminal in VS Code (Terminal > New Terminal).
  2. Create a new directory for your project with mkdir my-github-copilot-project and navigate into it using cd my-github-copilot-project.
  3. Initialize a new Git repository with git init.
  4. Create a new file (e.g., index.js) where you’ll write your code.

Expected Output: You should have a new directory with a Git repository and an empty file ready for coding.

Step 5: Start Coding with GitHub Copilot

You're ready to start using GitHub Copilot! Begin typing in your file, and Copilot will suggest code snippets as you go. For example:

  1. Type a comment like // Function to add two numbers and hit enter.
  2. Copilot will suggest a function. You can accept the suggestion by pressing Tab.

Expected Output: A complete function is generated in your file, saving you time on boilerplate code.

Troubleshooting: What Could Go Wrong

  • Copilot Suggestions Not Appearing: Ensure you’re signed in to GitHub and that the Copilot extension is enabled.
  • Slow Suggestions: If suggestions take too long, try restarting VS Code or check your internet connection.

What’s Next?

After setting up GitHub Copilot, consider experimenting with different programming languages and frameworks. You can also explore how Copilot can assist you in various coding tasks, from writing comments to generating complex algorithms.

For more advanced usage, look into integrating Copilot with other tools in your stack, or check out the Built This Week podcast for insights on how we use GitHub Copilot and other AI coding tools.

Conclusion: Start Here

Setting up GitHub Copilot in under 30 minutes is straightforward. With just a GitHub account, Visual Studio Code, and a subscription, you can leverage AI to enhance your coding productivity. If you’re still unsure about using it, take advantage of the free trial and see how it fits into your workflow.

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

AI Coding Tools Showdown: GitHub Copilot vs. Cursor - Which is Best for 2026?

AI Coding Tools Showdown: GitHub Copilot vs. Cursor Which is Best for 2026? As a solo founder or indie hacker, you know that every minute counts and coding can consume a lot of th

Apr 22, 20263 min read
Ai Coding Tools

Cursor vs GitHub Copilot: Which AI Tool Better Enhances Coding Efficiency?

Cursor vs GitHub Copilot: Which AI Tool Better Enhances Coding Efficiency in 2026? If you're a developer, you've probably felt the pressure to code faster and more efficiently. The

Apr 22, 20263 min read
Ai Coding Tools

How to Utilize Cursor for Enhanced Code Productivity in 2 Hours

How to Utilize Cursor for Enhanced Code Productivity in 2 Hours As indie hackers and solo founders, we often find ourselves buried under lines of code, wrestling with bugs, and try

Apr 22, 20264 min read
Ai Coding Tools

Bolt.new vs GitHub Copilot: A Side-by-Side Analysis

Bolt.new vs GitHub Copilot: A SidebySide Analysis As an indie hacker or solo founder, you know that coding can be a bottleneck, especially when you're juggling multiple projects. E

Apr 22, 20263 min read
Ai Coding Tools

Cursor AI vs GitHub Copilot: The Ultimate Showdown for Developers

Cursor AI vs GitHub Copilot: The Ultimate Showdown for Developers As a developer, the pressure to write code faster and more efficiently is relentless. With AI tools like Cursor AI

Apr 22, 20263 min read
Ai Coding Tools

How to Maximize Your Productivity with AI Coding Tools in Just 2 Hours

How to Maximize Your Productivity with AI Coding Tools in Just 2 Hours If you’re a solo founder or indie hacker, you know that time is your most precious resource. In 2026, AI codi

Apr 22, 20264 min read