How to use the new multi-file rules in Cursor
AI Summary
Summary of Video: Implementing New Multi Rules in Cursor AI
- Overview of New Rules
- Deprecated previous cursor rule methods.
- New rules are found under Settings → Rules.
- User vs. Project Rules
- User rules apply universally to all projects.
- Project rules are specific to individual codebases, synced directly.
- Creating Rules
- Click to add a new rule; enter a name.
- Delete old cursor rules file due to deprecation.
- Global rules apply to every request when marked with the global icon.
- Optional description for each rule to enhance clarity.
- Auto-Attach Feature
- Rules can be auto-attached based on file extensions (e.g.,
*.txt
).- Example: Setting up a rule to start responses with a greeting (e.g., “Hi there”) for all requests.
- Bug Encountered
- Issue with rules not applying as expected; may indicate bugs in the system.
- Testing Rules
- Experiment with rules not applying correctly to certain file types.
- Discusses potential bugs and need for further testing.
- Creating Additional Rules
- New examples, such as attaching an emoji to text files.
- Discovery that descriptions influence rule application.
- Final Thoughts
- Importance of user-defined rules and their flexibility.
- Noted difficulties with auto-attachment and rules application.
- Encouragement to explore different descriptions to optimize rule implementation.
- Conclusion
- Recap on how to effectively use the new rules and the agent’s role in applying them.
- Future developments expected to improve rule functionality.