How to Set Up GitHub Copilot for Your First Project in Under 15 Minutes
How to Set Up GitHub Copilot for Your First Project in Under 15 Minutes
If you're a solo founder or indie hacker, you know the struggle of juggling coding with everything else on your plate. Enter GitHub Copilot: an AI-powered coding assistant that can help you write code faster and more efficiently. But getting started can feel daunting, especially if you have a million other things to do. The good news? You can set it up for your first project in under 15 minutes. Let’s dive in.
Prerequisites for Setting Up GitHub Copilot
Before we get started, here’s what you need:
- GitHub Account: You should have an active GitHub account. Sign up for free if you don’t have one.
- Visual Studio Code (VSCode): Download and install VSCode, the code editor where Copilot will work its magic.
- GitHub Copilot Subscription: Copilot has a subscription model. As of June 2026, it’s priced at $10/month after a free trial.
Step-by-Step Setup Guide
Step 1: Install Visual Studio Code
- Download VSCode: Go to Visual Studio Code's website and download the version for your operating system.
- Install: Follow the installation prompts. This should take just a couple of minutes.
Step 2: Install the GitHub Copilot Extension
- Open VSCode: Launch the application.
- Go to Extensions: Click on the Extensions icon in the sidebar (or press
Ctrl+Shift+X). - Search for Copilot: Type "GitHub Copilot" in the search bar.
- Install: Click on the Install button for the GitHub Copilot extension.
Step 3: Sign in to GitHub
- Open a New File: Create a new file in VSCode (you can use any programming language, but let’s say JavaScript for this example).
- Sign In: When prompted, sign in with your GitHub account. This is where you’ll need to authorize the Copilot extension to access your account.
- Activate: After signing in, you’ll see a confirmation that Copilot is activated.
Step 4: Start Coding
- Write a Comment: Begin with a comment describing what you want to do, like
// Function to add two numbers. - See Suggestions: Copilot will automatically suggest code below your comment. Press
Tabto accept a suggestion or keep typing to see more options. - Refine: Edit the generated code as needed. You may need to adjust variable names or logic based on your requirements.
Step 5: Save and Test
- Save Your File: Use
Ctrl+Sto save your work. - Run Your Code: Depending on your setup, you can run your code directly in VSCode or through your terminal.
Troubleshooting Common Issues
- Copilot Not Suggesting Code?: Make sure the extension is enabled. Check your VSCode settings under Extensions.
- Authorization Issues: If you can't sign in, double-check your GitHub account permissions and ensure you have a Copilot subscription.
- Slow Suggestions: This can happen if your internet connection is unstable. Try restarting VSCode or checking your network.
What's Next?
Once you’ve got Copilot running, consider exploring these features:
- Pair Programming: Use it alongside another developer for collaborative coding.
- Learning New Languages: Experiment with different programming languages by writing comments and letting Copilot guide you.
- Integrate with GitHub Actions: Automate deployments or testing workflows using Copilot to suggest YAML configurations.
Conclusion
Setting up GitHub Copilot for your first project can be done in under 15 minutes, making it a valuable tool for indie hackers looking to boost productivity. Whether you’re just starting or looking to speed up your development process, Copilot can help you write code faster and learn as you go.
Start here: Follow the steps above, and you'll be coding with Copilot in no time.
Follow Our Building Journey
Weekly podcast episodes on tools we're testing, products we're shipping, and lessons from building in public.