Cursor is the code editor of the future, designed to revolutionize the way developers build software. Powered by advanced AI, Cursor is like having a supercharged coding assistant by your side, unlocking unprecedented levels of productivity and efficiency. Gone are the days of endlessly searching through your codebase or sifting through documentation - Cursor knows your project inside and out, providing tailored answers and suggestions that save you time and mental energy. With the ability to reference files, code definitions, and relevant documentation, Cursor empowers you to focus on the high-level problem-solving and creative aspects of development, while the AI handles the tedious, low-level tasks. But Cursor is more than just a knowledge base - it's a true collaborative partner. With its natural language editing capabilities, you can simply describe the changes you want to make, and Cursor will handle the implementation, ensuring your code stays clean and maintainable. And when you're ready to take your ideas to the next level, Cursor's code generation features allow you to create new functionality from scratch with a few simple prompts. The future of software engineering is here, and it's powered by Cursor. Whether you're a seasoned developer or just starting your coding journey, Cursor is the tool that will propel you forward, unlocking your full potential and helping you build better software, faster.
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. 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."
Copilot++ is Cursor's native autocomplete feature. You can enable it on the bottom status bar. It's a more powerful version of Copilot that can suggest mid-line completions and entire diffs. It uses a custom model that was trained to predict the next edit in a codebase.
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.
@ 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.")
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?." 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.
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.
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!
This feature lets you write terminal commands in plain english. Just hit Command K, and the AI will see the contents of your terminal. You can use it to write sql commands, fill in argparse arguments, and parse jsons with jq.
AI Notes help you quickly understand unfamiliar variables and types. Hold shift to get a quick summary of the symbol under your cursor. Notes will use both the definition of the symbol and any references to get you up to speed.
Cursor is incredible, it reads your mind and intuitively completes blocks of code. Unlike Copilot, it will autocomplete or fix blocks of code, not just the current line. Speeds up development significantly.