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

Cursor vs Codeium: Which AI Coding Assistant is Right for You? (2026 Comparison)

Cursor vs Codeium: Which AI Coding Assistant is Right for You? (2026 Comparison) As an indie hacker or solo founder, you know that time is money. If you're spending hours debugging

Aug 1, 20263 min read
Ai Coding Tools

AI Coding Assistants: Cursor vs GitHub Copilot – Which is Best for Indie Hackers?

AI Coding Assistants: Cursor vs GitHub Copilot – Which is Best for Indie Hackers? As an indie hacker, finding the right tools to streamline your coding process can be a gamechanger

Jul 31, 20263 min read
Ai Coding Tools

Cursor AI vs GitHub Copilot: Which AI Coding Tool Reigns Supreme in 2026?

Cursor AI vs GitHub Copilot: Which AI Coding Tool Reigns Supreme in 2026? As an indie hacker, I’m always on the lookout for tools that can save me time and make coding easier. In 2

Jul 31, 20263 min read
Ai Coding Tools

How to Enhance Your Coding Efficiency with AI Tools in 30 Minutes

How to Enhance Your Coding Efficiency with AI Tools in 2026 If you're like most indie hackers or solo founders, you're juggling multiple tasks while trying to ship your product. Co

Jul 31, 20264 min read
Ai Coding Tools

How to Use GitHub Copilot to Write Your First Blog Post in 1 Hour

How to Use GitHub Copilot to Write Your First Blog Post in 1 Hour Ever sat down to write a blog post and felt like you're staring at a blank screen? You're not alone. As indie hack

Jul 31, 20264 min read
Ai Coding Tools

Cursor vs Codeium: Which AI Assistant Boosts Productivity More?

Cursor vs Codeium: Which AI Assistant Boosts Productivity More? (2026) As a solo founder or indie hacker, you’re constantly on the lookout for tools that can save you time and boos

Jul 31, 20263 min read