Cursor is an AI-powered code editor that helps you build software faster.

Command K

Command K lets you edit and write code with the AI. To edit, try selecting some code, click "Edit," and describe how the code should be changed. To generate completely new code, just type Command K without selecting anything.

Example Image

Tip: Editing with Command K works best with selections between 1 and 50 lines. Edits also see the lint errors in your selection, so you can say "fix."


Chat lets you talk with an AI that sees your codebase. The chat can always see your current file and cursor, so you can ask it things like: "Is there a bug here?". You can add particular blocks of code to the context with Command+Shift+L or "@." You can chat with your entire codebase with Command+Enter.

Example Image

@ Symbols

@ Symbols let you easily show code to the AI. Try typing "@" in Command+K or in in the chat to get a dropdown of all the files and code symbols in your folder. You can use this for generating code that has a particular dependency ("Use the same styles as @ErrorPopup") or for asking about a file ("What does @inlineDiffService.ts do.")

Example Image

Codebase Answers

Codebase Answers let you ask the AI about your entire codebase. To use them, type Command+Enter in the chat or click the "with codebase" button in the input box. You can ask questions like "Where is the undo redo logic?" or "how do we handle auth tokens client side?."

Example Image

Tip: Click into "Advanced" into increase the number of AI scans that run throughout your code.


This feature improves the AI's understanding of third-party libraries. To use docs, type @LibraryName in the chat or Command K. To have Cursor crawl custom documentation, type "@Add" in Command K or in the chat. You'll specify the start of the crawl and a prefix that all crawled URLs should obey.

Example Image


Auto-debug is an agent for fixing errors in Cursor's terminal. To use it, click the blue "Auto-debug" button that shows up after a terminal error. When clicked, the AI will look through your files and enter a chain of thinking to try to fix the problem.

Example Image

Fix Lints

Cursor helps you quickly fix lint errors. Just hover over any lint error and click the blue "Fix" button that shows up. An AI response will show up in the chat. Never squint at a gnarly Typescript or Rust error again!

Example Image

Try Cursor For Free

Cursor LogoCursor

Build software faster in an IDE designed for pair-programming with AI


Made with by Anysphere