Ai Coding Tools

How to Use Cursor in 30 Minutes to Write Your First Code

By BTW Team3 min read

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

In short

A step-by-step guide on quickly getting up and running with Cursor, enabling you to write your first line of code in just half an hour.

If you're anything like me, diving into coding can feel like trying to decipher an alien language. The sheer number of tools, languages, and frameworks can be overwhelming. But what if I told you that you could start coding your first project in just 30 minutes using Cursor, an AI-powered coding tool? In this guide, I'll show you exactly how to do that, and trust me, it’s more straightforward than you think.

Prerequisites: What You Need to Get Started

Before we jump in, here’s what you’ll need:

  • A computer with internet access: You can use any OS—Cursor works on all major platforms.
  • A Cursor account: It’s free to sign up, and you can get started right away.
  • Basic understanding of programming concepts: While Cursor is user-friendly, knowing what variables and functions are will help.

Step 1: Setting Up Your Cursor Account

  1. Go to Cursor's website.
  2. Click on "Sign Up" and fill in your details.
  3. Once you’ve created your account, log in to access the dashboard.

Expected Output: You should see a clean interface with options to create a new project.

Step 2: Creating Your First Project

  1. Click on "New Project" in the dashboard.
  2. Choose a simple project type—let’s say “Basic Calculator”.
  3. Name your project and select your preferred programming language (Python is a great starting point).

Expected Output: A new project window opens with a code editor ready for your input.

Step 3: Writing Your First Lines of Code

Now that you have your project set up, it's time to write some code. Cursor has an AI assistant that can help you along the way.

  1. Start by typing a comment: # This is a simple calculator.
  2. Ask Cursor for help by typing: Create a function that adds two numbers.
  3. Cursor will generate code for you. Review it and click "Insert".

Expected Output: You should see a function like this:

def add(a, b):
    return a + b

Step 4: Testing Your Code

  1. Below your function, type: print(add(2, 3)) to test the function.
  2. Click "Run" to execute your code.

Expected Output: You should see 5 printed in the output console.

Troubleshooting: Common Issues and Solutions

  • Cursor doesn’t generate code: Ensure you’ve typed your request clearly. The AI works best with specific prompts.
  • Errors in your code: If you run into an error, check for syntax mistakes (like missing colons or parentheses).

What's Next: Expanding Your Skills

Now that you’ve written a basic function, consider exploring more complex tasks with Cursor:

  • Build a complete calculator: Add functions for subtraction, multiplication, and division.
  • Integrate user input: Ask users for numbers and perform calculations based on their input.
  • Explore other programming languages: Try creating projects in JavaScript or Ruby.

Conclusion: Start Here

Using Cursor, you can go from zero to coding in just 30 minutes. The key is to start small and let the AI assist you. If you follow the steps outlined above, you'll have your first code running in no time.

What We Actually Use

In our experience, we use Cursor for quick prototyping and learning new programming concepts. It’s not a replacement for deep coding knowledge, but it’s a fantastic tool for beginners and those looking to streamline their coding process.

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