Ai Coding Tools

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

By BTW Team4 min read

Comparing tools? See the AI tools tested on the show.

In short

A step-by-step guide for beginners on leveraging GitHub Copilot effectively to generate and refine scripts quickly.

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.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read