This repository contains a complete backup of your Cursor editor configuration, making it easy to sync settings across multiple machines or restore after a fresh install.
settings.json- All editor settings (fonts, theme, editor preferences)keybindings.json- Custom keyboard shortcutscli-config.json- Cursor AI configuration (permissions, privacy mode, default model)mcp.json- MCP (Model Context Protocol) server integrationsextensions.txt- List of installed extensions (auto-generated by backup script).cursorrules- AI assistant rules and coding standardssnippets/- Code snippets (only backed up if you have custom snippets)
backup.sh- Script to backup current configuration tobackup/restore.sh- Script to restore configuration frombackup/README.md- This documentation
- Font: JetBrains Mono with ligatures
- Theme: IntelliJ IDEA New UI Dark
- Icons: VSCode Icons
- Java Runtimes: JDK 11, 17, 21, 24 (GraalVM)
- Features:
- Auto-save on focus change
- Git auto-fetch enabled
- Smart commit enabled
- Font ligatures enabled
- AI Configuration:
- Default Model: GPT-5
- Privacy Mode: Enabled (Ghost Mode)
- Command Permissions: Shell(ls) allowed
- MCP Integrations: Docker support
- AI Rules:
- SonarQube quality standards enforced
- Comprehensive documentation required
- Proper error handling and logging
- English-only code and comments
- Git safety rules (no automatic commits)
When you make changes to your Cursor settings that you want to save:
cd ~/cursor-config
./backup.shThis will:
- Create/update the
backup/directory - Copy current
settings.jsonfrom Cursor tobackup/ - Copy current
keybindings.jsontobackup/ - Copy
cli-config.json(AI permissions and settings) tobackup/ - Copy
mcp.json(MCP integrations) tobackup/ - Auto-generate
extensions.txtwith all installed extensions - Copy any snippets (if you have custom snippets created) to
backup/snippets/ - Verify
.cursorrulesis present inbackup/ - Show you what was backed up
# Review what changed
git diff
# Stage and commit changes
git add .
git commit -m "Update Cursor configuration"
# Push to remote (if you have one configured)
git pushOn a new Mac where you want to restore your Cursor configuration:
# Install Homebrew (if not installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install JetBrains Mono font
brew install font-jetbrains-mono
# Install Cursor (if not installed)
# Download from: https://cursor.shcd ~
git clone <your-repo-url> cursor-config
cd cursor-configchmod +x restore.sh
./restore.shThe .cursorrules file has been copied to your home directory (~/.cursorrules) for global AI rules.
For project-specific rules:
# Copy to a specific project
cp ~/.cursorrules /path/to/your/project/Open Cursor (Cmd + Shift + X) and search for each extension listed in extensions.txt:
Essential Extensions:
- vscode-icons (Icon theme)
- IntelliJ IDEA Theme (Color theme)
- Java Language Support (redhat.java)
- YAML Language Support (redhat.vscode-yaml)
- Python Language Support (ms-python.python)
- Kotlin Language Support (fwcd.kotlin)
- And others as listed in
extensions.txt
# Quit Cursor
Cmd + Q
# Reopen Cursor
# All settings should now be applied!Controls Cursor AI behavior and permissions:
Permissions:
- Defines which shell commands the AI can execute
- Currently allowed:
Shell(ls)only - Add more commands as needed for your workflow
Privacy Settings:
- Ghost Mode: Enabled (enhanced privacy)
- Privacy Mode: Level 2 (balanced privacy/functionality)
Model Configuration:
- Default AI Model: GPT-5
- Model preferences and fallbacks
Model Context Protocol server integrations:
- Docker integration for containerized workflows
- Can be extended with additional MCP servers
- Enables AI to interact with external services
The .cursorrules file contains comprehensive guidelines for the AI assistant:
- Follow SonarQube principles (avoid duplication, maintain low complexity)
- Apply SOLID principles
- Write production-ready, maintainable code
- Never provide "quick and dirty" solutions
- Comprehensive documentation for classes, functions, and variables
- Use language-specific standards (Javadoc, JSDoc, docstrings, etc.)
- Include inline comments for complex logic
- All documentation must be in English
- Proper exception management with controlled propagation
- Structured logging at appropriate levels (INFO, WARN, ERROR, DEBUG)
- Include contextual information in logs
- Descriptive names only (no abbreviations or short names)
- Follow language-specific conventions (camelCase, PascalCase, snake_case)
- Express intent clearly through naming
- Never commit or push without explicit permission
- Never skip git hooks
- Never force push to main/master
- Always provide clear commit messages
- Global rules: Place in
~/.cursorrules(affects all projects) - Project-specific rules: Place in project root (overrides global rules)
If you prefer to manually copy files:
# Cursor configuration location on macOS
CURSOR_DIR="$HOME/Library/Application Support/Cursor/User"
# Copy settings
cp "$CURSOR_DIR/settings.json" ~/cursor-config/
cp "$CURSOR_DIR/keybindings.json" ~/cursor-config/
cp -r "$CURSOR_DIR/snippets/" ~/cursor-config/snippets/
# Copy Cursor AI configuration
cp ~/.cursor/cli-config.json ~/cursor-config/
cp ~/.cursor/mcp.json ~/cursor-config/
# Note: .cursorrules is maintained directly in the backup directoryCURSOR_DIR="$HOME/Library/Application Support/Cursor/User"
# Copy settings back
cp ~/cursor-config/settings.json "$CURSOR_DIR/"
cp ~/cursor-config/keybindings.json "$CURSOR_DIR/"
cp -r ~/cursor-config/snippets/ "$CURSOR_DIR/"
# Copy Cursor AI configuration back
mkdir -p ~/.cursor
cp ~/cursor-config/cli-config.json ~/.cursor/
cp ~/cursor-config/mcp.json ~/.cursor/
# Copy .cursorrules to home directory (global) or project directory
cp ~/cursor-config/.cursorrules ~/
# Or to a specific project:
# cp ~/cursor-config/.cursorrules /path/to/your/project/When you install a new extension:
- Add it to
extensions.txtwith a description - Run
./backup.sh - Commit the changes
- Change settings in Cursor (Cmd + ,)
- Run
./backup.shto save changes - Commit and push
chmod +x backup.sh restore.shMake sure Cursor is installed and has been opened at least once. The configuration directory is created on first launch.
If JetBrains Mono isn't showing:
# Reinstall font
brew reinstall font-jetbrains-mono
# Restart Cursor
# Cmd+Q then reopen- Open Command Palette:
Cmd + Shift + P - Type: "Preferences: Color Theme"
- Select: "IntelliJ IDEA New UI Dark"
- Command Palette:
Cmd + Shift + P - Settings:
Cmd + , - Extensions:
Cmd + Shift + X - Keyboard Shortcuts:
Cmd + K, Cmd + S - Reload Window:
Cmd + Shift + P→ "Reload Window"
# Cursor User Settings (macOS)
~/Library/Application Support/Cursor/User/
# Backup Location
~/cursor-config/- Family: JetBrains Mono
- Size: 13px
- Ligatures: Enabled
- Weight: 400 (Regular)
- Line Height: 1.5
- Auto-save on focus change
- Smart Git integration
- IntelliJ-style theme
- VSCode modern icons
This is a personal configuration backup, but feel free to fork and adapt it for your own use!
Personal configuration - use as you wish!
Last Updated: $(date) Maintained by: Carlos Nebrera