Cursor is an AI-powered code editor with code completion, editing, explanation features. This article covers Cursor's core features (Tab completion, Cmd+K editing, Chat panel, Composer) and common shortcuts.
Cursor is an AI-powered code editor built on VS Code, integrating Claude, GPT-4 and other LLMs for intelligent code completion, natural language editing, and team collaboration.
Intelligent code completion predicting the next snippet:
# Press Tab to accept completion
# Press Ctrl+G to reject
# Example
def calculate# Cursor predicts:
def calculate_total(items: list) -> float:
return sum(item.price for item in items)
Edit selected code with natural language:
# Select code, press Cmd+K
# Input: "Make this function async"
Sidebar chat for code questions:
# Cmd+L opens Chat panel
# Ask: "Explain this code", "Find bugs", etc.
Edit multiple files simultaneously:
# Cmd+I opens Composer
# Input: "Create a user authentication module"
| Feature | Shortcut |
|---|---|
| Accept completion | Tab |
| Reject completion | Ctrl+G |
| Code editing | Cmd+K |
| Chat | Cmd+L |
| Composer | Cmd+I |
Create .cursorrules in project root:
guidelines:
- Use TypeScript 4.0+
- Use ESLint
- Use Prettier
Auto-repair applied and deterministic inspection checks passed.
快捷键验证通过
功能介绍准确