Introducing Cursor Tab — your AI coding partner

The AI Code Editor

Built to make you extraordinarily productive,
Cursor is the best way to code with AI.

editor.tsx — cursor
src/
components/
Editor.tsx
Sidebar.tsx
Terminal.tsx
hooks/
useAI.ts
useEditor.ts
utils/
parser.ts
Editor.tsx
useAI.ts
parser.ts
import React, { useState, useEffect } from 'react';
import { useAI } from '../hooks/useAI';

interface EditorProps {
  filename: string;
  content: string;
  onSave: (value: string) => void;
}

export const Editor = ({ filename, content, onSave }: EditorProps) => {
  const [value, setValue] = useState(content);
  const { suggestion, getSuggestion } = useAI();

    // ✦ AI suggests: handle Cmd+K to open AI panel
  const handleKeyDown = (e: KeyboardEvent) => {
    if (e.metaKey && e.key === 'k') openAIPanel();
  };

  useEffect(() => {
    getSuggestion(value);
  }, [value]);
Cursor AI ⌘K
Refactor this to use a custom hook
Chat
How do I make this component re-render only when props change?
Cursor
Wrap your component with React.memo() to prevent unnecessary re-renders:
export const Editor = React.memo(({
  filename, content, onSave
}: EditorProps) => {
  // component body
});

Loved by engineers at

OpenAI
Stripe
Shopify
Vercel
Replicate
Perplexity
a16z
Cursor Tab

Tab completes your next edit

Cursor predicts your next action and auto-completes multi-line edits. Just press Tab to accept—it's like having a co-pilot who reads your mind.

  • Trained on millions of real code diffs
  • Multi-line, context-aware completions
  • Smarter than Copilot—edits, not just inserts
function processPayment(amount: number) {
  const fee = amount * 0.029;
  const total = amount + fee;
  return stripe.charge({ amount: total });
}
Tab to accept
⌘ K

Edit code with natural language

Press Cmd+K to open the inline AI editor. Describe what you want—Cursor writes or modifies the code directly in your file. No copy-pasting required.

  • Generate boilerplate instantly
  • Refactor selected code inline
  • Diff view to accept or reject changes
Add error handling and retry logic
return fetch(url);
+ return fetchWithRetry(url, 3);
+ .catch(e => logger.error(e));
Chat

Chat with your entire codebase

Cursor indexes your project so the AI understands your full context. Ask questions about your codebase, get explanations, and request changes across files.

  • @-mention files, symbols, and docs
  • Web search built in with @web
  • Powered by GPT-4 and Claude
Chat
Where is the auth token stored?
✦ Cursor
The auth token is stored in src/store/auth.ts inside the AuthSlice Redux store. It's set on login and cleared on logout.
src/store/auth.ts
@web How do I refresh JWT tokens?
✦ Cursor (web)
Use a refresh endpoint: store the refresh token securely in httpOnly cookies, then call /api/auth/refresh when the access token expires…

Everything you need to ship faster

Cursor brings the best of AI directly into your workflow—no context switching needed.

Agent Mode

Let Cursor autonomously implement features across multiple files, run terminal commands, and fix its own errors.

Works with GitHub

Pull in context from GitHub issues, PRs, and your entire codebase. Cursor understands your project history.

VS Code Compatible

Built on VS Code—import your extensions, themes, and keybindings. Zero learning curve for VS Code users.

Privacy Mode

Your code never leaves your machine. Enable Privacy Mode for SOC 2 certified zero data retention.

Multi-model

Switch between GPT-4, Claude, Gemini, and local models. Use the best model for each task.

Codebase Context

@codebase lets you ask natural questions about your entire project. Cursor builds a semantic index in seconds.

Developers love Cursor

★★★★★

"Cursor is the most transformative developer tool I've used. The Tab completions alone save me hours every week—it's like the AI finishes my thoughts."

S
Sam Altman
CEO, OpenAI
★★★★★

"I've tried every AI editor and Cursor is the only one that actually understands my codebase. Cmd+K is witchcraft—I describe changes and they just happen."

A
Andrej Karpathy
Former Tesla AI Director
★★★★★

"Switched from VS Code to Cursor and never looked back. The AI chat that understands my entire repo is exactly what I needed. Genuinely 2× faster."

G
Greg Brockman
President, OpenAI
★★★★★

"Cursor Tab is the feature I didn't know I needed. It doesn't just complete tokens—it predicts my next edit. That's a fundamentally different and better UX."

K
Karri Saarinen
CEO, Linear
★★★★★

"I've been building software for 20 years and Cursor is the biggest productivity leap since Stack Overflow. The Agent mode alone is worth the subscription."

D
David Cramer
CEO, Sentry
★★★★★

"Our entire engineering team at Vercel runs on Cursor. It's not a nice-to-have—it's standard issue. The codebase indexing feature changed how we onboard engineers."

G
Guillermo Rauch
CEO, Vercel

Built for every kind of builder

Frontend engineers

Build UI components, debug CSS, and write tests faster than ever. Chat with your design system.

Learn more →

Backend engineers

Design APIs, optimize database queries, and understand complex system architecture with AI.

Learn more →

Indie hackers

Go from idea to shipped product in record time. Cursor's Agent writes full features while you sleep.

Learn more →

Enterprise teams

Onboard engineers faster, standardize patterns, and give every developer an AI pair-programmer.

Learn more →
Changelog

Always getting better

We ship updates constantly. Every week brings new AI models, performance improvements, and community-requested features.

View full changelog →
Mar 2026
New
Cursor 2.2 — Visual Editor

Drag-and-drop visual editor for web apps. Point at elements and describe changes in natural language.

Feb 2026
Improved
Agent mode with parallel edits

Run multiple agents simultaneously across different parts of your codebase.

Jan 2026
New
Cursor Tab — next edit prediction

Predict and complete your next edit, not just the next tokens. A fundamentally smarter completion model.

Dec 2025
Improved
Claude 3.5 Sonnet & GPT-4o

Updated to the latest frontier models for dramatically better code generation accuracy.

Nov 2025
Fix
Faster codebase indexing

50× faster semantic indexing for large monorepos. Million-file codebases indexed in seconds.

100k+
Weekly active devs
$29B
Valuation
4.9★
Product Hunt
About Cursor

We're reinventing how software is built

Software creation is changing. We are a group of researchers, engineers, and technologists inventing at the edge of what's useful and possible. We have much to learn, try, and build.

Our mission is to make software development 10× more productive. We believe the best tools are the ones developers can't imagine living without.

Meet the team →

Start coding at the speed of thought

Join hundreds of thousands of developers shipping faster with Cursor.

Download Cursor for free

Free tier available. No credit card required.