Day 01 Foundations

Cursor Setup and Your First AI-Assisted Code

Cursor is VS Code with an AI brain. Install it, configure it correctly, and understand why it's different from GitHub Copilot and other AI coding tools.

~1 hour Hands-on Precision AI Academy

Today’s Objective

Cursor is VS Code with an AI brain. Install it, configure it correctly, and understand why it's different from GitHub Copilot and other AI coding tools.

Cursor installed and configured: your preferred model set, a project opened, and your first AI-assisted code written using Tab completion and inline editing.

What Makes Cursor Different

Cursor is a fork of VS Code — it looks identical and supports all the same extensions. The difference is how AI is integrated. Other tools add AI as a sidebar feature. Cursor makes AI the primary interaction model.

Cursor vs Alternatives
TEXT
GitHub Copilot → In-line completion only → Suggests next line based on context → Doesn't understand full codebase

ChatGPT / Claude.ai → Copy-paste workflow (slow) → No IDE integration → Doesn't see your actual files

Cursor → Tab: multi-line completion based on intent → Cmd+K: inline editing with AI → Cmd+L: full chat with codebase context → Composer: write entire features across files → @mentions: reference specific files, docs, web pages

The key advantage: Cursor knows your codebase. You can ask "how does user authentication work in this project?" and it reads the relevant files to answer. Copilot and ChatGPT can't do this.

Install and Configure

Download Cursor from cursor.so. Install it like any application. On first launch:

Import your VS Code settings if prompted — this brings over your extensions, themes, and keybindings so Cursor feels immediately familiar.

Open Settings (Cmd/Ctrl + ,) → Cursor Settings. Under Models, choose your preferred AI. Claude Sonnet or GPT-4o are the best choices for coding in 2025.

Enable Auto-import in settings if you use TypeScript or JavaScript — Cursor will automatically add import statements when it writes code that needs them.

Free vs Pro: Cursor's free tier gives you 2,000 AI completions/month. For serious development, the $20/month Pro plan is worth it — unlimited completions and access to better models. Try free first and upgrade when you hit the limit.

Tab Completion and Inline Editing

Tab Completion. This is the feature you'll use most. Start typing or write a comment describing what you want, and Cursor predicts your next lines. Press Tab to accept, Escape to reject.

The key difference from Copilot: Cursor's Tab completion is "next edit prediction" — it predicts what change you're about to make based on recent edits, not just what line comes next. Write one function, then start writing a similar one — Cursor fills it in based on the pattern.

Inline Editing (Cmd+K). Select any code and press Cmd+K (Ctrl+K on Windows). A small prompt appears. Type what you want: "add error handling," "refactor to use async/await," "add type hints." The AI modifies the selected code in place, and you see a diff before accepting.

Effective Cmd+K Prompts
TEXT
"add try/except for network errors"
"convert this to a list comprehension"
"add docstring"
"make this function take a list instead of a single item"
"optimize this loop"

Practice both on a real file you're working on. The goal for today: understand when Tab feels natural vs. when Cmd+K is better. Tab for continuation. Cmd+K for transformation.

20%

Supporting Resources

Go deeper with these references.

Cursor
Cursor Documentation Official Cursor IDE documentation covering features, keybindings, and configuration.
YouTube
Cursor AI Tutorials Community video tutorials demonstrating Cursor workflows in real projects.
GitHub
Awesome Cursor Rules Community-shared .cursorrules files for popular frameworks and languages.

Day 1 Checkpoint

Before moving on, make sure you can answer these without looking:

Continue To Day 2
The Chat Interface: Asking Questions About Your Codebase