Table of Contents
- Automatic Imports
- Quick Fix Menu
- Python Auto Import (Beta)
- Global & Project Settings
- Importing VS Code Configuration
- Defining .cursor-rules
- Feature Toggles
- AI Models & API Keys
- Enabling Beta Features
- Next Steps
Automatic Imports
Cursor leverages machine learning to detect missing Python modules and insert the corresponding imports. Consider this Flask example:csv is not imported, csv.reader will trigger a quick fix. Press ⌘. (macOS) or Ctrl+. (Windows/Linux), choose Import ‘csv’, and Cursor auto-inserts:
ModuleNotFoundError.
Use the auto-import feature to speed up development and avoid manual import typos.
Quick Fix Menu
Beyond imports, the Quick Fix menu helps with:- Renaming symbols
- Searching for import candidates
- Suppressing linter warnings
Ctrl+. / ⌘..
Python Auto Import (Beta)
The Python auto-import (Beta) proactively adds necessary imports as you type. Example:import csv appear at the top.
Customizing Settings in Cursor
Access global settings with⌘⇧J (macOS) or Ctrl+Shift+J (Windows/Linux). Here you can adjust AI rules, feature toggles, editor themes, and more.
Importing VS Code Settings
Mirror your VS Code preferences by importing your settings and extensions into Cursor.
Project-Specific Cursor Rules
Define a.cursor-rules file at your project root to override global AI instructions. These per-project settings ensure consistent code style.

.cursor-rules:
Feature Toggles
Enable or disable Cursor IDE features according to your workflow:| Feature | Description |
|---|---|
| Cursor predictions | Real-time code suggestions |
| Auto import for Python (Beta) | Automatic import insertion as you code |
| Partial accepts | Accept suggestions in segments |
| Show whitespace-only suggestions | Display whitespace completions |


Keep your API keys secure. Do not commit them to public repositories.
AI Models and API Keys
Under Models, select your preferred AI backend. To unlock premium capabilities, add API keys for:- OpenAI
- Anthropic
- Google Cloud AI
- Azure AI


Beta Features
Join the cutting edge by toggling beta features for early access to new AI capabilities.