The Cursor Interface
Learning Outcomes
- Identify what makes the Cursor interface different from VS Code
- Open and navigate the AI side pane (Agent, Ask, Manual modes)
- Trigger inline edits with Cmd+K / Ctrl+K
- Understand the three interaction modes and when to use each
- Configure core AI settings for your workflow
Lesson Plan
| Segment | Duration | Topic |
|---|---|---|
| Intro | 3 min | What we'll cover, Cursor vs VS Code at a glance |
| Demo 1 | 7 min | Opening Cursor, touring the sidebar and panels |
| Explain | 5 min | The AI side pane — Agent, Ask, and Manual modes |
| Demo 2 | 6 min | Inline edit with Cmd+K, accepting and rejecting |
| Demo 3 | 4 min | Using Agent mode for a multi-step task |
| Explain | 3 min | Settings walkthrough for AI behaviour |
| Wrap-up | 2 min | Key takeaways and next lesson preview |
Before You Begin
Pre-work:
- Complete the Installation guide
- Open Cursor with any project folder (even a single-file project)
Shopping List:
- Cursor installed and signed in
- A project folder open in Cursor
- Familiarity with basic code editor concepts (tabs, sidebar, terminal)
Cursor is a fork of VS Code, so the core layout feels familiar: a sidebar on the left, an editor area in the centre, a terminal at the bottom, and a status bar along the bottom edge. However, several things are new:
Key differences you'll notice immediately:
| Element | VS Code | Cursor |
|---|---|---|
| Right sidebar | Extensions panel | AI side pane (Agent/Ask/Manual) |
| Inline trigger | No equivalent | Cmd+K prompt bar |
| Status bar | Language, branch, errors | + AI model indicator, usage counter |
| Tab completions | Copilot ghost text | Cursor Prediction (multi-line, context-aware) |
| Command Palette | Editor commands only | + AI commands (Ask, Edit, Generate) |
When you open Cursor for the first time with a project, you'll see your file explorer on the left and (usually) a welcome tab in the editor. The AI side pane may be collapsed on the right — we'll open it in the next step.
The AI side pane is your primary interface for AI interactions. It lives in the right sidebar and supports three modes.
Toggle the AI side pane with Cmd+L. To open directly in Agent mode, use Cmd+I.
Toggle the AI side pane with Ctrl+L. To open directly in Agent mode, use Ctrl+I.
The three modes:
| Mode | Purpose | When to Use |
|---|---|---|
| Agent (default) | Autonomous multi-step execution — reads files, writes code, runs commands | Complex tasks, multi-file changes |
| Ask | Read-only Q&A — answers questions without making changes | Understanding code, exploring options |
| Manual | Direct edits — you control exactly what changes | Precise modifications, specific refactors |
Switch between modes using the tabs at the top of the side pane.
What you see in the AI side pane:
- Mode tabs — Agent / Ask / Manual at the top
- Model selector — shows the current model (e.g., Claude Sonnet). Click to switch.
- Context indicators — shows attached files or selections
- Message history — your messages and AI responses, scrollable
- Input box — at the bottom, where you type your prompts
- New conversation button — starts a fresh session
Try it now:
- Press Cmd+L (Mac) or Ctrl+L (Windows) to open the side pane
- Ensure you're in Ask mode (read-only, safe to explore)
- Type: "What files are in this project?"
- Press Enter
Cursor will scan your workspace and answer. It has full visibility into your open project folder without you needing to manually attach anything.
Inline editing is Cursor's fastest AI interaction. Instead of opening the side pane, you trigger a prompt bar right in the editor.
- Place your cursor on a line (or select some code)
- Press Cmd+K
- A prompt bar appears inline — type your instruction
- Press Enter to generate
- Place your cursor on a line (or select some code)
- Press Ctrl+K
- A prompt bar appears inline — type your instruction
- Press Enter to generate
What happens next:
- Cursor shows a diff of the proposed change directly in the editor
- Green highlights = new code to be added
- Red highlights = code to be removed
- Press Tab or click Accept to apply the change
- Press Escape to reject and close the prompt
Example — adding a docstring:
- Place your cursor on a function definition line
- Press Cmd+K / Ctrl+K
- Type: "Add a docstring explaining parameters and return value"
- Press Enter
- Review the diff, then press Tab to accept
Example — refactoring a variable name:
- Select a variable name
- Press Cmd+K / Ctrl+K
- Type: "Rename this to a more descriptive name and update all references in this function"
- Press Enter
- Review and accept
Agent mode is Cursor's most powerful interaction style. It can plan and execute multi-step tasks: reading files, creating new ones, editing existing code, and running terminal commands.
Open Agent mode with Cmd+I, or switch to the Agent tab in the side pane.
Open Agent mode with Ctrl+I, or switch to the Agent tab in the side pane.
Try a multi-step task:
Create a utility function in src/utils/format.ts that formats dates
as "Jan 5, 2026" and add a test file for it
Agent will:
- Read your project structure to understand where to place files
- Create
src/utils/format.tswith the function - Create a test file alongside it
- Show you all proposed changes for review
Reviewing Agent's work:
Agent shows changes as diffs in the editor. You can:
- Accept all — apply everything at once
- Accept individually — approve file by file
- Reject — discard and try a different approach
- Edit — modify the proposed changes before accepting
Plan mode (Shift+Tab):
Before Agent starts writing code, you can ask it to plan first:
- Toggle Plan mode with Shift+Tab in the input box
- Agent shows a step-by-step plan before executing
- Review and approve the plan, then Agent implements it
The Command Palette in Cursor includes AI-specific commands beyond what VS Code offers.
Open the Command Palette with Cmd+Shift+P.
Open the Command Palette with Ctrl+Shift+P.
Type "Cursor" or "AI" to filter for AI-specific commands. Key entries include:
| Command | What It Does |
|---|---|
| Cursor: New Conversation | Opens a fresh AI session |
| Cursor: Toggle AI Panel | Show/hide the AI sidebar |
| Cursor: Inline Edit | Same as Cmd+K — trigger inline prompt |
| Cursor: Explain | Explain selected code |
| Cursor: Fix | Attempt to fix selected code or error |
Try this workflow:
- Select a block of code in your editor
- Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
- Type "Cursor Explain"
- Select the command
The side pane will open with an explanation of the selected code.
Cursor's AI behaviour is configurable. Open settings to customize your experience:
Open Cursor Settings via the gear icon or Cursor menu → Settings → Cursor Settings.
Open Cursor Settings via the gear icon or File menu → Preferences → Cursor Settings.
Key settings areas:
-
Models — Choose your default model, enable/disable specific models, add API keys for additional providers.
-
Features — Toggle specific AI features:
- Agent mode (always on)
- Cmd+K inline editing
- Tab completions (autocomplete)
-
General — Configure behaviour:
- Privacy mode (control what's sent to AI)
- Response language preferences
-
Rules — Project-level AI rules (covered in depth in Lesson 6)
Recommended starter settings:
- Default model: Claude Sonnet (fast and capable)
- Tab completions: Enabled
- Privacy mode: Review based on your needs
The status bar at the bottom of the Cursor window includes AI-specific indicators you won't find in VS Code:
What to look for (left to right):
- Branch and sync — standard Git info (same as VS Code)
- Errors and warnings — standard diagnostics
- AI Model indicator — shows the currently active model (e.g., "claude-sonnet"). Click to switch models quickly.
- Usage counter — shows requests used this billing period (Pro plan)
Model switching from the status bar:
Click the model name in the status bar to open a quick-pick menu. You can switch between models without opening settings:
- Select a different model for the next interaction
- This affects Agent, Ask, and inline edits
- The change persists until you switch again
Questions & Answers
Key Takeaways
- Familiar foundation: Cursor looks and feels like VS Code — all your muscle memory transfers
- AI side pane (Cmd+L / Ctrl+L): Three modes — Agent (autonomous), Ask (read-only), Manual (precise)
- Agent mode (Cmd+I / Ctrl+I): Multi-step autonomous execution, auto-gathers context
- Inline edit (Cmd+K / Ctrl+K): Fast, focused edits right in the editor with diff preview
- Command Palette: Includes AI-specific commands — search for "Cursor" to find them
- Status bar: Shows active model and usage at a glance
Next Steps: In Lesson 2 — Chat & Inline Editing, you'll dive deeper into using both interfaces effectively for real coding tasks.