It would be nice to point Cursor to a .cursorrules file outside the repo.
I have a set of language-specific rules to apply to all projects using that language and:
I don’t want to have multiple copies of this file
I want to back it up centrally and not in the git repo.
Do you think it’s feasible?
Ideally this file should be chained to repo specific rules if any.
Unfortunately, we don’t have a good way of having .cursorrules files shared amongst multiple repos as a direct built-in feature.
My recommendation at the moment would be to keep your rules in a shared repository amongst all of your team members, and when you open up a new project in Cursor, add a local copy of those rules into the project.
I’ve logged this as feedback for the team as I do think there is a demand for this from big teams and enterprises!
Ok, I’m testing 0.51 and I see that now you allow multiple user rules, which is perfect!
Only one thing is missing: the “rule types” that you allow for project rules, e.g. manual, auto attached, agent requested, always.
Actually, you should use the exact same editor for the user and project rules (when I pasted a user rule in all newlines got removed)