Ai Coding Tools

How to Use GitHub Copilot to Write Your First Hello World App in 15 Minutes

By BTW Team3 min read

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

In short

A step-by-step guide on setting up GitHub Copilot and how to create a basic 'Hello World' app in just 15 minutes.

If you're a solo founder or indie hacker, you know the struggle of getting started with coding. You want to build something quickly and efficiently, but learning a new programming language or tool can feel overwhelming. Enter GitHub Copilot—a tool that can help you write code faster while learning along the way. In this tutorial, I’ll show you how to use GitHub Copilot to create your first "Hello World" app in just 15 minutes.

Prerequisites

Before we dive in, here’s what you need to have ready:

  • A GitHub account (free)
  • Visual Studio Code (free)
  • GitHub Copilot subscription ($10/month, free trial available)
  • Basic understanding of programming concepts (variables, functions)

Step-by-Step Instructions

Step 1: Set Up Your Environment

  1. Install Visual Studio Code: Download and install Visual Studio Code.
  2. Install GitHub Copilot: Open VS Code, navigate to the Extensions view (Ctrl+Shift+X), and search for "GitHub Copilot". Install it and sign in with your GitHub account.

Step 2: Create a New File

  1. Open VS Code and create a new file named hello.js.
  2. Save it in a folder where you want to keep your project.

Step 3: Start Coding with Copilot

  1. Type a Comment: Start by typing // This is a simple Hello World app in JavaScript. Copilot should suggest code to follow.

  2. Accept Suggestions: Press Tab to accept the suggestion.

  3. Write the Function: Type function greet() { and see what Copilot suggests next. It might autocomplete the function for you.

  4. Complete the Function: Ensure the function prints "Hello, World!" to the console. It should look something like this:

    function greet() {
        console.log("Hello, World!");
    }
    
  5. Call the Function: Below your function, type greet(); to call it.

Step 4: Run Your App

  1. Open your terminal in VS Code (Ctrl+`).
  2. Type node hello.js and hit Enter. You should see "Hello, World!" printed in the terminal.

Expected Output

When you run your app, the terminal should display:

Hello, World!

Troubleshooting

  • No Suggestions: If Copilot isn't suggesting code, make sure you’re logged in and that the extension is enabled.
  • Errors in Code: If you encounter errors, double-check your syntax. JavaScript is sensitive to misplaced characters.

What's Next?

Now that you’ve created a simple app, here are some ideas for what to build next:

  • Expand your app to take user input.
  • Try other programming languages like Python or Ruby with Copilot.
  • Explore more complex projects like a to-do list or a weather app.

Conclusion

Using GitHub Copilot to build your first "Hello World" app is straightforward and can be done in about 15 minutes. It’s an excellent way to dip your toes into coding while having a helpful assistant by your side.

Start here: If you’re looking to build something quickly, follow the steps above and let Copilot guide you. Make sure to leverage the suggestions it provides and don’t hesitate to tweak the code to fit your needs.

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