VSCode extension for managing Cursor AI configuration files with version control.
- Initialize and manage
.cursorrules
and.cursorignore
files - Version control for configuration files (keeps last N versions)
- Template management with default template support
- Built-in default templates for development guide and common ignore patterns
- Search and apply rules from awesome-cursorrules repository
- Automatic version backup on file changes
- VSCode 1.84.0 or higher
- Git (for rules repository management)
- Node.js & npm (for development)
-
From VS Code Marketplace:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Cursorify"
- Click Install
-
From VSIX file:
- Download the .vsix file from the latest release
- Run
code --install-extension cursorify-x.x.x.vsix
All commands can be accessed through the Command Palette (Cmd+Shift+P
/ Ctrl+Shift+P
):
-
Cursorify: Initialize Cursor Configuration
- Creates initial
.cursorrules
and.cursorignore
files - Uses default template if set, otherwise creates basic structure
- Automatically creates
.cursor-history
directory for version control
- Creates initial
-
Cursorify: Search Rules
- Search for rules based on technology/keywords
- Preview rule content before applying
- Append selected rules to existing configuration
-
Cursorify: Save Current Rules as Template
- Save current
.cursorrules
or.cursorignore
as a reusable template - Add name and description for easy identification
- Option to set as default template
- Save current
-
Cursorify: Manage Rules Templates
- View all saved rules templates
- View template content
- Set/change default template
- Delete templates
- Apply template to current project
-
Cursorify: Manage Ignore Templates
- View all saved ignore templates
- View template content
- Set/change default template
- Delete templates
- Apply template to current project
-
Cursorify: Set Default Rules Template
- Quick access to set/change default rules template
- Option to clear default template
-
Cursorify: Set Default Ignore Template
- Quick access to set/change default ignore template
- Option to clear default template
-
Cursorify: Show Configuration History
- View version history of configuration files
- Each version includes timestamp and version number (v1, v2, etc.)
-
Cursorify: Rollback Configuration
- Restore to a previous version
- Automatically creates backup of current version
-
Cursorify: Show Configuration Diff
- Compare different versions of configuration
- Visual diff view for easy comparison
-
Cursorify: Update Rules Cache
- Update local cache of rules repository
- Shows progress during update
-
Cursorify: Show Cache Content
- View current cache status
- Shows cache location and last update time
-
Cursorify: Clear Cache
- Clear local rules cache
- Useful for troubleshooting
Available settings in VSCode preferences:
cursorify.maxVersions
: Maximum number of versions to keep in history (default: 10)cursorify.defaultRulesTemplate
: Default template for new rules configurationscursorify.defaultIgnoreTemplate
: Default template for new ignore configurationscursorify.savedRulesTemplates
: Storage for user-saved rules templatescursorify.savedIgnoreTemplates
: Storage for user-saved ignore templatescursorify.rulesCache
: Cache settings for rules repository
-
Initial Setup:
1. Open your project in VSCode 2. Run "Cursorify: Initialize Cursor Configuration" - Uses built-in default templates if no user defaults are set - Creates both .cursorrules and .cursorignore files 3. Optionally search for additional rules using "Cursorify: Search Rules"
-
Managing Templates:
For Rules Templates: 1. Customize your .cursorrules file 2. Run "Cursorify: Save Current Rules as Template" 3. Enter template name and description 4. Optionally set as default rules template For Ignore Templates: 1. Customize your .cursorignore file 2. Run "Cursorify: Save Current Rules as Template" 3. Choose .cursorignore when prompted 4. Enter template name and description 5. Optionally set as default ignore template
-
Version Control:
1. Changes to .cursorrules or .cursorignore are automatically versioned 2. Use "Show History" to view versions 3. Use "Rollback" to restore previous versions 4. Use "Show Diff" to compare versions
-
Adding Rules:
1. Run "Cursorify: Search Rules" 2. Enter technology keywords 3. Preview and select rules to apply 4. Rules are appended to existing configuration
your-project/
├── .cursorrules # Main rules configuration
├── .cursorignore # Ignore patterns
└── .cursor-history/ # Version history
├── cursorrules_v1_[timestamp]
├── cursorrules_v2_[timestamp]
└── cursorignore_v1_[timestamp]
- TypeScript
- VSCode Extension API
- Node.js File System API
- simple-git for Git operations
- node-fetch for API calls
src/
├── commands/ # Command implementations
│ ├── index.ts # Main command handler
│ └── templateCommands.ts # Template-related commands
├── constants/ # Constants and configurations
│ └── index.ts
├── models/ # Type definitions
│ └── types.ts
├── services/ # Business logic
│ ├── templateService.ts
│ ├── versionService.ts
│ └── rulesService.ts
└── extension.ts # Extension entry point
-
Clone the repository:
git clone https://github.com/yourusername/cursorify.git cd cursorify
-
Install dependencies:
npm install
-
Open in VS Code:
code .
-
Run/Debug:
- Press F5 to start debugging
- Use
npm run watch
for development - Use
npm run test
for testing
npm run compile
npm run package
The VSIX file will be generated in the root directory.
- VSCode ^1.84.0
- simple-git ^3.27.0
- node-fetch ^2.7.0
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
If you encounter any problems or have suggestions:
- Check the FAQ
- Open an issue
See CHANGELOG.md for all changes.
- iAladdin - Initial work - iAladdin
- Thanks to PatrickJS for the awesome-cursorrules repository
- VSCode Extension API documentation and examples
- All contributors who have helped with the project