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

Bolt.new vs Codeium: What You Need to Know for 2026

Bolt.new vs Codeium: What You Need to Know for 2026 As an indie hacker, you’re probably kneedeep in the coding trenches, trying to ship your next big idea. But with so many AI codi

May 6, 20264 min read
Ai Coding Tools

Comparing AI Coding Assistants: Codeium vs Cursor - Which One Fits Your Dev Style?

Comparing AI Coding Assistants: Codeium vs Cursor Which One Fits Your Dev Style? As indie hackers and solo founders, we often find ourselves juggling multiple roles, and coding ca

May 6, 20263 min read
Ai Coding Tools

10 Overrated AI Coding Tools and What to Use Instead

10 Overrated AI Coding Tools and What to Use Instead As builders, we often find ourselves bombarded with the latest AI coding tools promising to revolutionize our workflow. The hyp

May 6, 20265 min read
Ai Coding Tools

How to Integrate GitHub Copilot with Your Local Development Environment in 30 Minutes

How to Integrate GitHub Copilot with Your Local Development Environment in 2026 If you’re like me, you’ve probably spent countless hours wrestling with your code, trying to remembe

May 6, 20264 min read
Ai Coding Tools

AI Coding Tools: Cursor vs Codeium - Which One Saves You More Time?

AI Coding Tools: Cursor vs Codeium Which One Saves You More Time? As a solo founder or indie hacker, time is your most valuable resource. You want to code faster, debug efficientl

May 6, 20263 min read
Ai Coding Tools

Myth-Busting: Why AI Coding Tools Aren't a Panacea for All Developers

MythBusting: Why AI Coding Tools Aren't a Panacea for All Developers As we dive deeper into 2026, the conversation around AI coding tools continues to heat up. Many developers are

May 6, 20264 min read