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

5 Mistakes Every Beginner Makes When Using AI Coding Tools

5 Mistakes Every Beginner Makes When Using AI Coding Tools As a solo founder or indie hacker diving into the world of AI coding tools, it’s easy to get swept up in the excitement o

Oct 4, 20264 min read
Ai Coding Tools

10 Common Misconceptions About AI Coding Tools in 2026

10 Common Misconceptions About AI Coding Tools in 2026 As we dive into 2026, AI coding tools have become a staple in the developer toolkit. However, misconceptions still run rampan

Oct 4, 20264 min read
Ai Coding Tools

5 Mistakes to Avoid When Using AI Coding Tools for Real Projects

5 Mistakes to Avoid When Using AI Coding Tools for Real Projects As we dive deeper into 2026, AI coding tools have become an essential part of the developer's toolkit. However, usi

Oct 4, 20264 min read
Ai Coding Tools

5 Common Misconceptions About AI Coding Tools and Why They Matter

5 Common Misconceptions About AI Coding Tools and Why They Matter As a solo founder or indie hacker, you’re likely eyeing AI coding tools to boost your productivity and streamline

Oct 4, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make with AI Coding Tools in 2026

5 Common Mistakes Developers Make with AI Coding Tools in 2026 As we dive deeper into 2026, AI coding tools have become essential for developers looking to enhance productivity and

Oct 4, 20263 min read
Ai Coding Tools

How to Automate Your Development Workflow with AI in 3 Easy Steps

How to Automate Your Development Workflow with AI in 3 Easy Steps (2026) As indie hackers and solo founders, we often find ourselves buried under a mountain of repetitive tasks tha

Sep 3, 20264 min read