How to Use Cursor AI
Master the power of AI-assisted coding through our complete guide. Learn how to leverage Cursor AI's features to enhance your development workflow.
Tab Completion
Cursor Tab is our native autocomplete feature. It's a more powerful version of Copilot that can suggest complete code diffs and has particularly good memory.
Key Features:
- • Suggests edits around your cursor, not just inserting additional code
- • Modifies multiple lines of code at once
- • Makes suggestions based on your recent changes and linter errors
- • Free users get 2000 free suggestions
- • Pro and Business plan users get unlimited suggestions
How to Toggle:
To turn this feature on or off, hover over the "Cursor Tab" icon in the status bar at the bottom right of the app.
Chat Mode
Cursor Chat lets you ask questions or solve problems in your codebase using the most powerful language models right in your editor.
Smart Context Understanding:
For language models to give good answers, they need to know specific information about your codebase — context.
Cursor has several built-in ways of providing context in chat:
- • Automatically includes context from your entire codebase
- • Web search
- • Documentation indexing
- • User-specified code block references
Quick Access:
By default, Cursor Chat is in the AI panel, opposite to the main sidebar. You can toggle the AI panel with Ctrl/⌘ + L, which will focus the chat.
Cmd K Mode
Cmd K (or Ctrl K on Windows/Linux) lets you generate new code or edit existing code in your editor window.
Prompt Bars:
In Cursor, we call the bars that appear when you press Ctrl/Cmd K "prompt bars". They work like the AI input box in chat, where you can type normally or use @ to reference other context.
Inline Generation:
If no code is selected when you press Ctrl/Cmd K, Cursor will generate new code based on your prompt in the prompt bar.
Quick Question:
If you press Option/Alt Enter in the prompt bar, Cursor will answer any question about your selection and additional context.
The content of this conversation can be used in subsequent generations, so after Cursor gives you an answer, you can just type "do it" to generate the code.
Ready to Get Started?
Download Cursor AI now and experience the power of AI-assisted coding.
Download Cursor AI