Ai Coding Tools

How to Use GitHub Copilot for Coding Projects in Less Than 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot for Coding Projects in Less Than 2 Hours

If you're a solo founder or indie hacker, you know that time is your most valuable resource. You want to ship projects quickly but often find yourself bogged down in coding details. Enter GitHub Copilot, an AI-powered coding assistant that can help you write code faster. The catch? It can feel overwhelming to get started. In this guide, I’ll walk you through how to effectively use GitHub Copilot for your coding projects in under two hours.

What is GitHub Copilot?

GitHub Copilot is an AI coding assistant that suggests code snippets and entire functions as you type. It’s designed to integrate seamlessly with your existing workflow, making it easier to implement features or solve coding problems without losing your train of thought.

Prerequisites

Before diving in, make sure you have the following:

  • A GitHub account (Free)
  • Visual Studio Code installed (Free)
  • GitHub Copilot subscription (Free trial available, $10/mo after)

Setting Up GitHub Copilot

Step 1: Install Visual Studio Code

If you haven’t already, download and install Visual Studio Code. It’s a lightweight yet powerful code editor that works great with GitHub Copilot.

Step 2: Install GitHub Copilot Extension

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side.
  3. Search for "GitHub Copilot" and click "Install."

Step 3: Sign In to GitHub

After installation, you’ll need to sign in to your GitHub account to activate Copilot. Follow the prompts to authenticate.

Expected output: You should see a confirmation that GitHub Copilot is activated in your editor.

Using GitHub Copilot Effectively

Step 4: Start Coding

Open a new file in your preferred programming language. As you begin typing, GitHub Copilot will start suggesting code snippets. Here’s how to get the most out of it:

  1. Write a Comment: Describe what you want to achieve in plain English. For example, “Create a function to calculate the Fibonacci sequence.”

  2. Accept Suggestions: Press Tab to accept suggestions or Esc to dismiss them. You can cycle through multiple suggestions using the arrow keys.

Step 5: Iterate and Improve

As you build your project, don’t hesitate to refine your prompts. If the initial suggestion isn’t quite right, adjust your comment for clarity.

Expected Output

By now, you should have a functional piece of code generated by Copilot. This iterative process can significantly speed up your coding.

Troubleshooting Common Issues

What Could Go Wrong

  1. Inaccurate Suggestions: Sometimes, Copilot may suggest code that doesn't work as expected. Always review the generated code and test it.

  2. Limited Context: If your comments or existing code are vague, Copilot may struggle to provide useful suggestions. Be as descriptive as possible.

Solutions

  • If you find that Copilot isn’t generating useful suggestions, try rewriting your comment.
  • Make sure to keep your project well-structured, as this helps Copilot understand your coding context better.

Pricing Breakdown

| Feature | Pricing | Best For | Limitations | Our Take | |---------------------|-----------------------|-------------------------|-------------------------------------|--------------------------------| | GitHub Copilot | Free trial, $10/mo | Solo developers, small teams | May not understand complex logic | We use this for quick prototyping and learning new languages. |

What's Next?

Now that you know how to set up and use GitHub Copilot, consider integrating it into your daily coding routine. You can also explore other AI coding tools to complement your workflow.

Other AI Coding Tools to Consider

  1. Tabnine: AI-powered code completion. Pricing: Free tier + $12/mo pro. Best for: Developers looking for multi-language support. Limitations: Less context-aware than Copilot.

  2. Kite: Provides code completions and documentation. Pricing: Free + $19.90/mo for Pro. Best for: Python developers. Limitations: Limited language support.

  3. Codeium: Open-source AI code completion tool. Pricing: Free. Best for: Developers seeking cost-effective solutions. Limitations: Less polished than commercial tools.

What We Actually Use

In our experience at Built This Week, we primarily use GitHub Copilot for rapid prototyping and learning new frameworks. While it's not perfect, the speed it offers is invaluable for indie projects.

Conclusion: Start Here

If you're looking to speed up your coding process, GitHub Copilot is a solid choice. It might take a bit of time to get used to its suggestions, but the time saved in coding can be substantial. Start with the setup steps outlined above, and you’ll be on your way to coding projects faster than ever before.

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

How to Boost Your Coding Efficiency with AI: 5 Tools to Try

How to Boost Your Coding Efficiency with AI: 5 Tools to Try As indie hackers and solo founders, we’re always on the lookout for ways to streamline our workflows and code more effic

May 19, 20264 min read
Ai Coding Tools

How to Build a Fully Functional App with AI Coding Tools in 2 Hours

How to Build a Fully Functional App with AI Coding Tools in 2 Hours Building an app in just two hours sounds like a pipe dream, right? As indie hackers and solo founders, we often

May 18, 20264 min read
Ai Coding Tools

Cursor AI vs GitHub Copilot: Which AI Coding Assistant Reigns Supreme in 2026?

Cursor AI vs GitHub Copilot: Which AI Coding Assistant Reigns Supreme in 2026? As a solo founder or indie hacker, coding can sometimes feel like an uphill battle, especially when y

May 18, 20263 min read
Ai Coding Tools

How to Automate Your Coding Workflows Using AI in Under 2 Hours

How to Automate Your Coding Workflows Using AI in Under 2 Hours As a solo founder or indie hacker, you know that time is your most precious resource. The reality is that coding can

May 18, 20265 min read
Ai Coding Tools

How to Write Your First Code Using Cursor in Just 30 Minutes

How to Write Your First Code Using Cursor in Just 30 Minutes If you're a beginner looking to dip your toes into coding, the idea of starting can feel overwhelming. But what if I to

May 18, 20263 min read
Ai Coding Tools

Bolt.new vs GitHub Copilot: Which AI Assistant Boosts Productivity More?

Bolt.new vs GitHub Copilot: Which AI Assistant Boosts Productivity More? In 2026, developers are bombarded with tools promising to enhance productivity. Two of the most talkedabout

May 18, 20263 min read