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

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read