Ai Coding Tools

How to Use GitHub Copilot to Write Your First 10 Scripts in Under 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Write Your First 10 Scripts in Under 2 Hours

If you're new to coding and feeling overwhelmed, you're not alone. I've been there—staring at a blank screen, wondering how to turn my ideas into functional scripts. Enter GitHub Copilot, an AI-powered coding assistant that claims to help you write code faster. In this guide, I'll show you how to leverage Copilot to create your first 10 scripts in under 2 hours.

Time Estimate: 2 Hours

You can finish this in about 2 hours if you follow along and have a basic understanding of programming concepts. Let’s dive in!

Prerequisites

  • GitHub Account: Sign up for a free account if you don’t have one.
  • Visual Studio Code: Download and install VS Code, which is a free code editor.
  • GitHub Copilot Subscription: Copilot costs $10/month or $100/year after a free trial.

Step 1: Set Up GitHub Copilot

  1. Install the GitHub Copilot Extension:

    • Open Visual Studio Code.
    • Go to the Extensions view (Ctrl+Shift+X).
    • Search for "GitHub Copilot" and install it.
  2. Sign In:

    • After installation, sign in with your GitHub account and authorize Copilot.
  3. Enable Copilot:

    • Make sure Copilot is enabled in the settings (File > Preferences > Settings > Extensions > GitHub Copilot).

Step 2: Write Your First Script

Here's how to write your first script using Copilot:

  1. Create a New File:

    • Open a new file in VS Code and save it with the .py extension for Python scripts.
  2. Start Typing a Comment:

    • For example, type # Script to calculate the sum of two numbers and hit enter.
  3. Let Copilot Suggest:

    • After your comment, start typing def sum_numbers(a, b): and see how Copilot suggests a complete function. Accept the suggestion (Tab key).
  4. Test the Script:

    • Run your script to ensure it works.

Step 3: Repeat for 9 More Scripts

Here are nine more script ideas to try with Copilot:

  1. Basic Calculator: # Script to perform basic arithmetic operations
  2. To-Do List: # Script to manage a simple to-do list
  3. Weather Fetcher: # Script to fetch weather data from an API
  4. Web Scraper: # Script to scrape data from a webpage
  5. File Organizer: # Script to organize files in a directory
  6. Password Generator: # Script to generate random passwords
  7. Simple Game: # Script to create a simple text-based game
  8. Data Visualizer: # Script to visualize data using matplotlib
  9. Email Sender: # Script to send emails using SMTP

Expected Outputs

For each script, you should see Copilot generating code snippets that you can run and modify.

Troubleshooting Section

What could go wrong:

  • Copilot doesn’t suggest anything: Make sure you’re typing contextually relevant comments or code.
  • Code doesn’t run: Check for syntax errors or missing libraries.

What’s Next?

Once you’ve created your first 10 scripts, consider:

  • Improving Your Scripts: Refactor the code to make it cleaner.
  • Learning More: Explore additional online resources or take a course on Python.

Pricing Breakdown

| Tool | Pricing | Best For | Limitations | Our Take | |----------------|----------------------------|-----------------------------------|--------------------------------------|---------------------------------------| | GitHub Copilot | $10/mo, $100/yr (free trial)| Beginners looking to code faster | Limited to supported languages only | Essential for speeding up coding | | Visual Studio Code | Free | Code editing | Requires extensions for more features| Our go-to code editor | | Python | Free | General scripting | Performance for large applications | Perfect for beginners | | Postman | Free tier + $12/mo pro | API testing | Free tier has limited features | We use this for API testing | | Jupyter Notebook| Free | Data science | Not ideal for production environments | Great for learning and prototyping |

Conclusion: Start Here

If you're a beginner looking to write scripts quickly, start by setting up GitHub Copilot. In two hours, you can create multiple scripts and gain confidence in your coding abilities. Remember, the key is to keep experimenting and learning as you go.

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

How to Automate Your Development Workflow with AI in 3 Easy Steps

How to Automate Your Development Workflow with AI in 3 Easy Steps (2026) As indie hackers and solo founders, we often find ourselves buried under a mountain of repetitive tasks tha

Sep 3, 20264 min read
Ai Coding Tools

How to Boost Your Coding Velocity with AI in 30 Minutes

How to Boost Your Coding Velocity with AI in 30 Minutes As a solo founder or indie hacker, you know that time is your most precious resource. The idea of boosting your coding veloc

Sep 3, 20264 min read
Ai Coding Tools

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted As we dive into 2026, GitHub Copilot has become a staple in many developers' toolkits. However, despite its popularity,

Sep 3, 20263 min read
Ai Coding Tools

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours As indie hackers, we all know the struggle of trying to stay productive while juggling multiple projects. The prom

Sep 3, 20265 min read
Ai Coding Tools

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project?

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project? As a solo founder or indie hacker, choosing the right tools can be a makeorbreak decision for your project. With

Sep 3, 20263 min read
Ai Coding Tools

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths As a programmer, I’ve been there: staring at a blank screen, hoping for a burst of inspiration

Sep 3, 20264 min read