Use Case

Using Cursor to Learn New Codebases

Onboard to unfamiliar codebases faster with Cursor's AI. Ask questions about code, get explanations, and navigate complex architectures.

Joining a new project? Cursor indexes your entire codebase and lets you ask questions in natural language. Instead of grep-searching through thousands of files, ask Cursor 'how does authentication work here?' and get an explanation with references to the actual source files.

Why use Cursor for learning new codebases?

01

Ask natural language questions about any part of the codebase

02

Get explanations with direct references to source files and line numbers

03

Understand complex architectures by asking about data flow, dependencies, and patterns

04

Navigate unfamiliar code faster than reading files one by one

Getting started

  1. 1

    Open the project in Cursor and let it index the codebase (first time takes a minute)

  2. 2

    Open the chat panel (Cmd+L) and ask high-level questions: 'how is this project structured?'

  3. 3

    Ask specific questions about modules: 'how does the payment flow work?'

  4. 4

    Use @file references to ask about specific files: '@auth.ts explain this middleware'

  5. 5

    Build mental models incrementally by asking follow-up questions

More ways to use Cursor

Explore more