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

GitHub Copilot vs Codeium: Which AI Tool is Worth Your Investment in 2026?

GitHub Copilot vs Codeium: Which AI Tool is Worth Your Investment in 2026? As a solo founder or indie hacker, you’re always on the lookout for tools that can save you time and boos

May 6, 20263 min read
Ai Coding Tools

Supabase vs Firebase: The Ultimate AI Database Decision for 2026

Supabase vs Firebase: The Ultimate AI Database Decision for 2026 As we dive into 2026, the choices for backend databases have never been more critical for indie hackers, solo found

May 6, 20263 min read
Ai Coding Tools

How to Leverage AI Coding Tools to Write 5x More Code in 30 Days

How to Leverage AI Coding Tools to Write 5x More Code in 30 Days As indie hackers and solo founders, we all face the challenge of getting more done with limited time and resources.

May 6, 20264 min read
Ai Coding Tools

How to Use AI Tools to Complete a Coding Project in Under 24 Hours

How to Use AI Tools to Complete a Coding Project in Under 24 Hours As a solo founder or indie hacker, you know the pressure of tight deadlines. You might be juggling multiple proje

May 6, 20265 min read
Ai Coding Tools

How to Debug JavaScript Code Using AI in Under 30 Minutes

How to Debug JavaScript Code Using AI in Under 30 Minutes Debugging JavaScript code can feel like searching for a needle in a haystack – especially when you're on a tight deadline

May 6, 20265 min read
Ai Coding Tools

Is GitHub Copilot Actually Worth It? A Deep Dive Comparison

Is GitHub Copilot Actually Worth It? A Deep Dive Comparison As a solo founder or indie hacker, you’re always on the lookout for tools that can actually save you time and effort. Gi

May 6, 20263 min read