Ai Coding Tools

How to Use GitHub Copilot to Write Your First Code in 10 Minutes

By BTW Team3 min read

How to Use GitHub Copilot to Write Your First Code in 10 Minutes

In 2026, coding isn't just for seasoned developers anymore. With tools like GitHub Copilot, even total beginners can start writing code quickly. But here's the catch: many people feel overwhelmed when trying to dive into coding. The good news? You can start coding your first project in just 10 minutes with GitHub Copilot.

Let’s break down how to do this step-by-step, including what you need, what to expect, and some common pitfalls to avoid.

Prerequisites: What You Need Before You Start

  1. GitHub Account: Sign up for a free GitHub account if you don’t have one.
  2. Visual Studio Code (VS Code): Download and install Visual Studio Code, which is a free code editor.
  3. GitHub Copilot Subscription: GitHub Copilot costs $10/month after a free trial. Make sure you sign up for that to get started.
  4. Basic Understanding of Programming Concepts: Familiarity with concepts like variables, functions, and loops will help, but it's not strictly necessary.

Step 1: Install GitHub Copilot

  1. Open Visual Studio Code.
  2. Go to the Extensions panel on the left sidebar.
  3. Search for "GitHub Copilot" and click "Install".
  4. Follow the prompts to log in to your GitHub account and authorize the extension.

Expected Output: You should see a "Copilot is ready!" message in the bottom right corner of VS Code.

Step 2: Create a New File

  1. Create a new file in VS Code by clicking on "File" > "New File".
  2. Save it with a .js extension (for JavaScript) or another language of your choice (like Python with a .py extension).

Expected Output: You now have a new file ready for coding.

Step 3: Write Your First Code

  1. Start typing a comment that describes what you want to do. For example, type // Create a function that adds two numbers.
  2. Press Enter, and GitHub Copilot will suggest code based on your comment.

Expected Output: You should see a function appear that adds two numbers together.

Step 4: Accepting Suggestions

  1. If the suggestion looks good, press Tab to accept it.
  2. If it’s not quite right, you can cycle through other suggestions by pressing Ctrl + ] (or Cmd + ] on Mac).

Expected Output: You’ve now accepted your first piece of code!

Step 5: Run Your Code

  1. If you're using JavaScript, you can run the code directly in the terminal with Node.js. Make sure to install Node.js if you haven't already.
  2. Open the terminal in VS Code (View > Terminal) and type node yourfilename.js.

Expected Output: You should see the result of your function in the terminal.

Troubleshooting: What Could Go Wrong

  • Copilot Doesn’t Suggest Anything: Ensure you’ve typed a clear comment and that Copilot is activated.
  • Syntax Errors: Make sure you have the correct programming language selected in the bottom-right corner of VS Code.

What’s Next?

Now that you’ve written your first piece of code, consider building on that. Try creating more complex functions, or explore different programming languages. GitHub Copilot can assist you in learning new syntax and libraries as you go along.

Conclusion: Start Here

If you're feeling stuck on where to begin with coding, GitHub Copilot is a valuable tool that can help you get started in just 10 minutes. Just ensure you have the right setup and a willingness to explore.

Remember, the key is to practice and build on what you learn. Happy 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

10 Mistakes New Developers Make When Using AI Tools

10 Mistakes New Developers Make When Using AI Tools As we dive into 2026, AI tools have transformed the coding landscape. But with all the excitement, new developers often stumble

Mar 16, 20264 min read
Ai Coding Tools

How to Use Cursor.ai for Rapid Prototyping in Under 60 Minutes

How to Use Cursor.ai for Rapid Prototyping in Under 60 Minutes In the fastpaced world of building side projects, getting an idea from concept to prototype can feel overwhelming. Ma

Mar 16, 20263 min read
Ai Coding Tools

Why GitHub Copilot is Overrated: Contrarian Perspectives on AI Coding Assistants

Why GitHub Copilot is Overrated: Contrarian Perspectives on AI Coding Assistants As a solo founder or indie hacker, you’re always on the lookout for tools that genuinely boost your

Mar 16, 20264 min read
Ai Coding Tools

How to Build Your First App Using AI Tools in Under 3 Hours

How to Build Your First App Using AI Tools in Under 3 Hours If you're a solo founder or an indie hacker, the thought of building an app might seem daunting. But what if I told you

Mar 16, 20265 min read
Ai Coding Tools

Top 5 AI Tools for Beginners in 2026: Your Launchpad

Top 5 AI Tools for Beginners in 2026: Your Launchpad As a beginner diving into the world of coding in 2026, the landscape is flooded with AI tools promising to make your journey sm

Mar 16, 20264 min read
Ai Coding Tools

Supabase vs Firebase for AI-Driven Projects: A 2026 Comparison

Supabase vs Firebase for AIDriven Projects: A 2026 Comparison As we dive into 2026, the landscape for building AIdriven applications has evolved significantly. If you're an indie h

Mar 16, 20264 min read