Use .cursorrules outside repo

Hello!

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:

  1. I don’t want to have multiple copies of this file
  2. 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.

Hey, we have some changes to AI rules coming soon, which may change your workflow around this!

Have a go with our new update once it’s out, and let us know how you get on.

1 Like

Looking forward to this, thanks for the heads up.

We are also in need of having shared .cursorrules for an org, in order to broadcast best practices changes across an org in an easier way.

Hi! any news about this?

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!

Isn’t it enough to point to a file path or store them in my cursor online account?

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)