Ai Coding Tools

How to Use GitHub Copilot to Write Your First Lines of Code in 30 Minutes

By BTW Team3 min read

How to Use GitHub Copilot to Write Your First Lines of Code in 30 Minutes

If you’re a beginner looking to dive into coding, you might feel overwhelmed by the sheer volume of information out there. The good news? You don’t need to learn everything before you start writing code. With tools like GitHub Copilot, you can start coding your first lines in just 30 minutes. We’ve used it to bootstrap projects quickly, and I can tell you, it’s a game-changer for beginners who want to build without getting bogged down by syntax.

Prerequisites: What You Need to Get Started

Before we jump into the coding, here’s what you’ll need to have set up:

  1. GitHub Account: Sign up for a free account if you don’t have one already.
  2. Visual Studio Code (VS Code): Download and install this popular code editor.
  3. GitHub Copilot Subscription: As of June 2026, it costs $10/month after a 60-day free trial.
  4. Basic Understanding of Code: Familiarity with any programming language (JavaScript, Python, etc.) will help, but it’s not mandatory.

Step 1: Install GitHub Copilot

  1. Open VS 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”.
  4. Sign in with your GitHub account when prompted.

Expected Output:

You should see a GitHub Copilot icon in the VS Code sidebar, indicating that it’s ready to assist you.

Step 2: Create a New Project

  1. Open a new folder in VS Code.
  2. Create a new file with a .js or .py extension, depending on which language you’re using.

Expected Output:

Your new file is open and ready for coding!

Step 3: Start Writing Code with Copilot's Suggestions

  1. Begin typing a comment that describes what you want to do, like // Create a function to add two numbers.
  2. As you type, GitHub Copilot will suggest code snippets. Press Tab to accept a suggestion.

Example:

If you type // Create a function to add two numbers, Copilot might suggest:

function add(a, b) {
   return a + b;
}

Expected Output:

You now have a function that adds two numbers, thanks to Copilot’s suggestions.

Step 4: Run Your Code

  1. If you’re using JavaScript, you can run your code using Node.js. If you’re using Python, run it in the terminal.
  2. Use the command node yourfile.js or python yourfile.py to execute your code.

Expected Output:

If everything is set up correctly, you should see the result of your function in the terminal.

Troubleshooting: What Could Go Wrong

  1. Copilot Not Suggesting Code: Ensure you’re connected to the internet and signed in to your GitHub account.
  2. Errors in Code: Copilot can make mistakes. Always double-check the logic and syntax.
  3. Installation Issues: If you’re having trouble with the installation, try restarting VS Code or checking your extension settings.

What's Next: Expanding Your Skills

Once you’ve successfully written and run your first lines of code, consider these next steps:

  • Learn Basic Programming Concepts: Explore online resources or courses to build a strong foundation.
  • Build a Small Project: Use Copilot to help you create a simple project, like a calculator or a to-do list app.
  • Join Developer Communities: Engage with other beginners and experienced developers to share knowledge and get feedback.

Conclusion: Start Here

Using GitHub Copilot can significantly reduce the learning curve for beginners. In just 30 minutes, you can write your first lines of code and see immediate results. The key is to experiment, learn from suggestions, and gradually build your coding skills.

If you’re ready to dive in, start by installing GitHub Copilot and setting up your first project. You might be surprised at how quickly you can start coding!

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

Bolt.new vs GitHub Copilot: Which AI Coding Tool Fits Your Needs?

Bolt.new vs GitHub Copilot: Which AI Coding Tool Fits Your Needs? As a solo founder or indie hacker, finding the right tools to streamline your coding process can feel overwhelming

Jun 29, 20263 min read
Ai Coding Tools

10 Mistakes You Might Make with AI Coding Tools

10 Mistakes You Might Make with AI Coding Tools in 2026 As an indie hacker or solo founder, leveraging AI coding tools can feel like a doubleedged sword. On one hand, they promise

Jun 29, 20265 min read
Ai Coding Tools

AI Coding Tools: GitHub Copilot vs Codeium – Which is the Best 2026 Option?

AI Coding Tools: GitHub Copilot vs Codeium – Which is the Best 2026 Option? As we dive into 2026, the landscape of AI coding tools has evolved significantly. If you’re a solo found

Jun 29, 20263 min read
Ai Coding Tools

How to Build Your First MVP Using AI Coding Tools in Just 14 Days

How to Build Your First MVP Using AI Coding Tools in Just 14 Days Building a Minimum Viable Product (MVP) can feel overwhelming, especially for solo developers or indie hackers. Yo

Jun 29, 20265 min read
Ai Coding Tools

Why Most People Overrate GitHub Copilot: Myths Busted

Why Most People Overrate GitHub Copilot: Myths Busted As a solo founder and indie hacker, I’ve seen the hype around GitHub Copilot grow exponentially over the last couple of years.

Jun 29, 20264 min read
Ai Coding Tools

How to Build a Simple App Using Cursor AI in Just 2 Hours

How to Build a Simple App Using Cursor AI in Just 2 Hours Building an app sounds daunting, especially if you’re a beginner. But what if I told you that with the right tools, you co

Jun 29, 20263 min read