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 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