Ai Coding Tools

How to Set Up GitHub Copilot for Your First Project in 2 Hours

By BTW Team4 min read

Comparing tools? See the AI tools tested on the show.

In short

Step-by-step guide detailing how beginners can set up GitHub Copilot for their first coding project, complete with tips and tricks for effective use.

If you're diving into coding and want a powerful assistant at your side, GitHub Copilot is a game-changer. But let's be real: the setup process can feel daunting, especially for beginners. I remember my first time trying to get it running and feeling overwhelmed by the options and settings. Fear not! In this guide, I'll walk you through setting up GitHub Copilot for your first project in just 2 hours.

Prerequisites: What You Need

Before jumping in, ensure you have the following:

  1. GitHub Account: Sign up at GitHub if you don’t already have one.
  2. Visual Studio Code: Download and install VS Code, the IDE where you'll use Copilot.
  3. Node.js (Optional): If you're planning on building a JavaScript project, install Node.js.
  4. GitHub Copilot Subscription: You'll need to subscribe to GitHub Copilot, which costs $10/month after a free trial.

Step 1: Installing GitHub Copilot

  1. Open VS Code: Launch your Visual Studio Code application.
  2. Go to Extensions: Click on the Extensions view icon on the Sidebar or press Ctrl+Shift+X.
  3. Search for GitHub Copilot: Type “GitHub Copilot” in the search bar.
  4. Install the Extension: Click the Install button on the GitHub Copilot extension.

Expected Output: You’ll see the GitHub Copilot icon appear in the sidebar once installed.

Step 2: Sign In to GitHub

  1. Open Command Palette: Press Ctrl+Shift+P to open the command palette.
  2. Authenticate: Type “GitHub: Sign In” and select it. Follow the prompts to log in with your GitHub credentials.
  3. Authorize Copilot: Allow GitHub Copilot to access your account.

Expected Output: A confirmation message stating that you’re signed in successfully.

Step 3: Create Your First Project

  1. Open a New Folder: In VS Code, go to File > Open Folder and select or create a new folder for your project.
  2. Create a New File: Right-click in the Explorer panel and create a new file (e.g., index.js for a JavaScript project).
  3. Start Coding: Begin typing a function, and watch as Copilot suggests code completions.

Expected Output: Copilot will provide suggestions as you type, which you can accept by hitting Tab.

Step 4: Customize Copilot Settings

  1. Open Settings: Go to File > Preferences > Settings or press Ctrl+,.
  2. Search for Copilot: Type “Copilot” in the settings search bar.
  3. Adjust Preferences: You can toggle features like suggestion visibility and inline suggestions based on your comfort level.

Expected Output: Your Copilot settings will be updated according to your preferences.

Troubleshooting: What Could Go Wrong

  • Copilot Not Suggesting Code: If Copilot isn’t providing suggestions, check if you're signed in. Sometimes, restarting VS Code can help.
  • Slow Suggestions: If suggestions are slow, ensure your internet connection is stable, as Copilot relies on cloud processing.

What’s Next?

Now that you’ve got GitHub Copilot set up, consider building a simple project. Here are a few ideas:

  • To-Do List App: A great way to practice JavaScript and HTML.
  • Personal Portfolio: Showcase your projects and skills.
  • API Integration: Experiment with fetching data from public APIs.

Comparison of GitHub Copilot Alternatives

| Tool Name | Pricing | Best For | Limitations | Our Take | |--------------------|----------------------------|-------------------------|--------------------------------------|------------------------------| | GitHub Copilot | $10/mo, free trial available| Beginner coding projects | Requires internet, limited languages | We use it for JavaScript. | | TabNine | Free, $12/mo for Pro | AI code completion | Less context-aware than Copilot | We don't use it, lacks depth.| | Codeium | Free | Free code suggestions | Limited language support | We haven't tried it yet. | | Kite | Free, Pro at $19.90/mo | Python developers | Limited to Python | We don't use it, not our stack. | | Sourcery | Free, $19/mo for Pro | Python code improvement | Focused on Python only | We don't use it, niche focus. |

What We Actually Use

For our projects, we primarily rely on GitHub Copilot due to its seamless integration with VS Code and robust suggestions. We occasionally use TabNine for specific contexts but find Copilot's AI capabilities more comprehensive.

Conclusion: Start Here

Setting up GitHub Copilot is straightforward and can significantly enhance your coding experience. Follow the steps outlined here, and you’ll be coding smarter, not harder, in no time. Dive into your first project and let Copilot guide you through the process.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read