Ai Coding Tools

How to Build Your First Project with GitHub Copilot in Under 2 Hours

By BTW Team3 min read

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

In short

Step-by-step tutorial aimed at beginners on how to effectively use GitHub Copilot to create a small project within a tight timeframe.

If you're a solo founder or indie hacker, you've probably felt the frustration of getting stuck on coding tasks that seem to take forever. Learning to code can feel like an uphill battle, especially if you're trying to juggle it with other responsibilities. Enter GitHub Copilot—a tool that promises to make coding faster and easier by suggesting code snippets as you type. But can it really help you build your first project in under two hours? Spoiler alert: Yes, it can, but there are some caveats.

Prerequisites: What You'll Need

Before diving in, make sure you have the following:

  • Basic understanding of programming: Familiarity with JavaScript or Python will help.
  • GitHub account: Sign up for free if you don't have one.
  • Visual Studio Code (VS Code): Download and install it if you haven't already.
  • GitHub Copilot subscription: Costs $10/month after a free trial.
  • A clear project idea: Something simple like a to-do list app or a weather app.

Step 1: Set Up Your Environment (15 minutes)

  1. Install VS Code: Head to VS Code's website and download the latest version.
  2. Install GitHub Copilot: Open VS Code, go to the Extensions view, search for "GitHub Copilot," and install it.
  3. Authenticate Copilot: Follow the prompts to log in with your GitHub account and authorize Copilot.

Expected Output: You should see a "Copilot" icon in the sidebar once it's successfully installed.

Step 2: Start Coding Your Project (1 hour)

Create a New Project

  1. Open a new folder in VS Code: This will be your project directory.
  2. Create a new file: For example, app.js for a JavaScript project.

Use GitHub Copilot to Generate Code

  • Start typing a function: For instance, function getWeather(city) {. Copilot will suggest code based on your input.
  • Accept suggestions: Use the Tab key to accept suggestions. If it's not quite right, you can modify it or ask for a different suggestion by typing more context.

Expected Output: You should have a functional piece of code generated by Copilot that you can further customize.

Step 3: Test Your Project (30 minutes)

  1. Run your code: Use the built-in terminal in VS Code to execute your project and check for any errors.
  2. Debug as needed: If something doesn’t work, Copilot can also help you troubleshoot. Just type a comment like // fix this and see what suggestions come up.

Expected Output: A working project that you can show off or iterate on.

Common Issues and Troubleshooting

  • Code doesn't compile: Ensure that your project setup is correct and all necessary dependencies are installed.
  • Copilot doesn't suggest anything: Make sure you're typing enough context. Sometimes, Copilot needs a clear prompt to understand what you're asking for.

What's Next?

After you've built your first project, consider these next steps:

  • Iterate and improve: Add more features based on user feedback.
  • Deploy your project: Use platforms like Heroku or Vercel for deployment.
  • Learn more: Check out resources like the Built This Week podcast for deeper dives into tools and strategies for indie hackers.

Conclusion: Start Here

If you're looking to build something quickly and efficiently, GitHub Copilot is a powerful ally. While it won't write your entire project for you, it significantly speeds up the coding process, especially for beginners. Just be prepared for some trial and error, and don’t hesitate to customize the suggestions it provides.

To get started, follow the steps above and remember that the key is to keep your project simple. Happy coding!

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