Ai Coding Tools

How to Use GitHub Copilot for Rapid Prototyping in Just 2 Hours

By BTW Team3 min read

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

In short

A step-by-step tutorial on leveraging GitHub Copilot to build a functional prototype quickly and efficiently, perfect for new developers.

Rapid prototyping is essential for indie hackers and solo founders who need to validate their ideas quickly. But let's be honest: coding can be a bottleneck. Enter GitHub Copilot, an AI-powered coding assistant that can help you whip up a prototype in no time. In this guide, I’ll show you how to leverage GitHub Copilot effectively in just 2 hours.

Prerequisites: What You Need to Get Started

Before you dive in, make sure you have the following:

  • GitHub Account: You’ll need this to access Copilot.
  • Visual Studio Code (VSCode): Copilot integrates seamlessly with this popular code editor.
  • Basic Coding Knowledge: Familiarity with JavaScript, Python, or the language you're prototyping in will be helpful.
  • GitHub Copilot Subscription: You can start with a free trial, but it costs $10/month after that.

Step 1: Setting Up GitHub Copilot

  1. Install Visual Studio Code: If you haven’t already, download and install VSCode from here.
  2. Install GitHub Copilot Extension: Go to the Extensions Marketplace in VSCode and search for "GitHub Copilot". Click "Install".
  3. Sign In: Open the command palette (Ctrl+Shift+P) and search for "GitHub: Sign In". Follow the prompts to authenticate your GitHub account.

Expected Output: You should see a small Copilot icon in the editor, indicating it’s ready to assist you.

Step 2: Start Prototyping Your Idea

  1. Create a New File: Start with a new file in your chosen programming language (e.g., app.js for JavaScript).
  2. Write a Comment Describing Your Function: For instance, type // Create a simple to-do list app. Copilot will suggest code snippets based on your comment.
  3. Accept or Modify Suggestions: Use the tab key to accept suggestions or modify them as needed. You can refine what Copilot suggests by adding more context in your comments.

Example Output

// Create a simple to-do list app
const todos = [];
function addTodo(todo) {
  todos.push(todo);
}

Step 3: Implement Core Features

  1. Define Your Data Structure: With Copilot, you can quickly define how your data should look. For example, add comments for tasks like // Define a task object with title and completed status.
  2. Build Functions: Write comments for each function you need (e.g., // Function to delete a task) and let Copilot generate the boilerplate code.

Expected Outputs

  • Task Object
  • Add/Delete Functions

Step 4: Testing and Debugging

  1. Run Your Prototype: Use the terminal within VSCode to run your code. Check for errors and let Copilot suggest fixes.
  2. Refine Your Code: If you encounter issues, describe the problem in a comment (e.g., // Fix the delete function), and let Copilot help.

Troubleshooting Tips

  • If Copilot is not suggesting relevant code: Ensure your comments are clear and specific.
  • If your code keeps failing: Check for common syntax errors or typos.

What’s Next: Deploy Your Prototype

Once your prototype is up and running, consider deploying it using platforms like Vercel or Heroku for quick sharing and feedback.

Conclusion: Start Prototyping with GitHub Copilot Today

In just 2 hours, you can leverage GitHub Copilot to prototype your ideas quickly and efficiently. The key is to use clear comments and accept suggestions that fit your vision.

What We Actually Use

We rely heavily on GitHub Copilot for initial drafts, especially when building out features we’ve defined in our roadmap. It speeds up our workflow significantly, but we always do a thorough code review before finalizing anything.

Remember, while GitHub Copilot is a powerful tool, it’s not infallible. You’ll still need to apply your judgment and coding skills to refine the output.

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