⚙️ Complete environment setup and configuration instructions
- System Requirements
- Install Cursor Editor
- Get the Rules
- Project Configuration
- Verify Installation
- Updates and Maintenance
| System | Minimum Version | Recommended Version |
|---|---|---|
| Windows | Windows 10 | Windows 11 |
| macOS | 10.15 (Catalina) | 14 (Sonoma) |
| Linux | Ubuntu 18.04 | Ubuntu 22.04 LTS |
| Component | Minimum Requirement | Recommended Configuration |
|---|---|---|
| RAM | 4 GB | 8 GB+ |
| Storage | 500 MB | 1 GB+ |
| Processor | Dual-core | Quad-core+ |
| Network | Stable connection | Broadband connection |
| Software | Purpose | Download |
|---|---|---|
| Cursor AI | AI Programming Editor | cursor.sh |
| Git | Version Control | git-scm.com |
Method 1: Official Website (Recommended)
- Visit cursor.sh
- Click the "Download" button
- Run the downloaded
.exeinstaller - Follow the wizard to complete installation
Method 2: Using Winget
winget install cursorMethod 3: Using Chocolatey
choco install cursorMethod 1: Official Website (Recommended)
- Visit cursor.sh
- Download the
.dmgfile - Drag Cursor to your Applications folder
Method 2: Using Homebrew
brew install --cask cursorMethod 1: AppImage (Recommended)
# Download AppImage
wget https://downloader.cursor.sh/linux/appImage/x64 -O cursor.AppImage
# Add execute permission
chmod +x cursor.AppImage
# Run
./cursor.AppImageMethod 2: Using Snap
sudo snap install cursorMethod 3: Ubuntu/Debian Package
# Download .deb package
wget https://cursor.sh/download/deb -O cursor.deb
# Install
sudo dpkg -i cursor.deb
sudo apt-get install -f # Fix dependencies- Open the Cursor application
- Log in to your Cursor account (optional, but recommended for syncing settings)
- Choose your AI model preference:
- Claude (Recommended): Strong code understanding
- GPT-4: General programming tasks
- Others as needed
- Complete the initial setup wizard
- Enable rule support (recommended):
- Open Settings (
Ctrl/Cmd + ,) - Search for "cursorrules"
- Enable "Use .cursorrules" option
- Open Settings (
# Clone the repository
git clone https://github.com/LessUp/awesome-cursorrules-zh.git
# Enter the directory
cd awesome-cursorrules-zh
# View available rules
ls rules/# Download latest version
wget https://github.com/LessUp/awesome-cursorrules-zh/archive/refs/heads/main.zip
# Extract
unzip main.zip
cd awesome-cursorrules-zh-main# Using gh command (requires GitHub CLI)
gh repo clone LessUp/awesome-cursorrules-zh
cd awesome-cursorrules-zhStep 1: Identify Your Tech Stack
# List frontend rules
ls rules/frontend/react/
# List backend rules
ls rules/backend/python/
# List mobile rules
ls rules/mobile/Step 2: Copy Rules File
# Enter your project directory
cd /path/to/your/project
# Copy single rule
cp /path/to/awesome-cursorrules-zh/rules/frontend/react/nextjs-typescript/.cursorrules ./
# Or merge multiple rules
cat /path/to/awesome-cursorrules-zh/rules/frontend/react/nextjs-typescript/.cursorrules > .cursorrules
echo "" >> .cursorrules
cat /path/to/awesome-cursorrules-zh/rules/backend/python/fastapi-api-example/.cursorrules >> .cursorrulesStep 3: Verify Configuration
# Check if file exists
ls -la .cursorrules
# View first 30 lines of content
cat .cursorrules | head -30
# Check file encoding (should be UTF-8)
file .cursorrulesRecommended Cursor settings (settings.json):
{
"cursor.ai.model": "claude-3.5-sonnet",
"cursor.ai.maxTokens": 4096,
"cursor.ai.temperature": 0.2,
"cursor.ai.enableCodeActions": true,
"cursor.ai.useCursorRules": true
}Settings path:
- Windows:
%APPDATA%/Cursor/User/settings.json - macOS:
~/Library/Application Support/Cursor/User/settings.json - Linux:
~/.config/Cursor/User/settings.json
- Cursor launches and runs normally
-
.cursorrulesfile is in the project root - "Use .cursorrules" setting is enabled
- File encoding is UTF-8
# 1. Check if file exists
ls -la .cursorrules
# 2. Check file content
head -20 .cursorrules
# 3. Check file encoding
file .cursorrules
# Expected output: .cursorrules: UTF-8 Unicode text
# 4. Check file size
ls -lh .cursorrules
# Recommended: Less than 50KB- Open Project: Open a project containing
.cursorruleswith Cursor - Create Test File: Create a new code file (e.g.,
test.tsx) - Trigger AI Suggestions: Type code and observe AI responses
- Verify Rules Working:
- Naming suggestions follow rules
- Code style is consistent
- Architecture patterns are correct
# Enter the rules directory
cd awesome-cursorrules-zh
# Pull latest updates
git pull origin main
# View update content
git log --oneline -10Lock to a specific version if needed:
# View available tags
git tag
# Switch to specific version
git checkout v2.0.0
# Or create your own branch
git checkout -b my-custom-rules# Backup current rules
cp .cursorrules .cursorrules.backup.$(date +%Y%m%d)
# Restore from backup
cp .cursorrules.backup .cursorrules
# Restore from Git
git checkout HEAD -- .cursorrulesIf experiencing unusual behavior, try clearing cache:
# macOS/Linux
rm -rf ~/.cursor/cache
# Windows
Remove-Item -Recurse -Force $env:APPDATA\Cursor\cacheSome Cursor features require login, but .cursorrules functionality works offline. Logging in enables settings sync and history.
Cursor only looks for .cursorrules in the project root. Placing it in subdirectories will not work.
Ask the AI assistant to "describe the coding standards for this project". If the response matches your .cursorrules content, rules are active.