How to use the new multi-file rules in Cursor



AI Summary

Summary of Video: Implementing New Multi Rules in Cursor AI

  1. Overview of New Rules
    • Deprecated previous cursor rule methods.
    • New rules are found under Settings → Rules.
  2. User vs. Project Rules
    • User rules apply universally to all projects.
    • Project rules are specific to individual codebases, synced directly.
  3. 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.
  4. 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.
  5. Bug Encountered
    • Issue with rules not applying as expected; may indicate bugs in the system.
  6. Testing Rules
    • Experiment with rules not applying correctly to certain file types.
    • Discusses potential bugs and need for further testing.
  7. Creating Additional Rules
    • New examples, such as attaching an emoji to text files.
    • Discovery that descriptions influence rule application.
  8. 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.
  9. 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.