Ai Coding Tools

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

By BTW Team4 min read

How to Set Up GitHub Copilot for Your First Project in 2026

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.

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

Bolt.new vs Cursor: Which AI Tool is Worth Your $20/mo?

Bolt.new vs Cursor: Which AI Tool is Worth Your $20/mo? As a solo founder or indie hacker, choosing the right AI coding tool can feel like navigating a minefield. You want somethin

Jul 25, 20263 min read
Ai Coding Tools

5 Key Mistakes New Developers Make with AI Coding Tools

5 Key Mistakes New Developers Make with AI Coding Tools As a new developer, diving into the world of AI coding tools can be both exciting and overwhelming. With the rapid advanceme

Jul 25, 20264 min read
Ai Coding Tools

Bolt.new vs Cursor: Which AI Tool Boosts Your Workflow More?

Bolt.new vs Cursor: Which AI Tool Boosts Your Workflow More? (2026) As a solo founder or indie hacker, finding tools that genuinely enhance your productivity without breaking the b

Jul 25, 20263 min read
Ai Coding Tools

How to Use GitHub Copilot to Code Your First App in 5 Days

How to Use GitHub Copilot to Code Your First App in 5 Days If you’re a solo founder or an indie hacker looking to build your first app, the thought of coding can be daunting. You m

Jul 25, 20264 min read
Ai Coding Tools

How to Use ChatGPT to Debug Your Code in 30 Minutes

How to Use ChatGPT to Debug Your Code in 30 Minutes Debugging can be a frustrating and timeconsuming process. As indie hackers and solo founders, we often find ourselves stuck in t

Jul 25, 20264 min read
Ai Coding Tools

10 Advanced Features of GitHub Copilot You Didn't Know About

10 Advanced Features of GitHub Copilot You Didn't Know About If you're a developer using GitHub Copilot, you're probably aware of its basic features like code completion and sugges

Jul 25, 20265 min read