Ai Coding Tools

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

By BTW Team3 min read

How to Use GitHub Copilot to Write Your First Hello World App in 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.

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

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read