.cursorrules not working in codebase mode

Greetings,

I created a .cursorrules file in the root directory of my project. I took the rules from the cursor.directory (for .NET). To test it, I put “Rule is Running” at the end of the rule. I see that it is triggered in chat mode, but when I use the codebase structure, .cursorrules is not triggered.

How do I solve this, have you encountered such a problem before?

Thanks for your support.

Hey, are you referring to using CTRL+Enter to run the prompt in a codebase-wide context?

Yes, it does not detect cursorrules when I use it with CTRL+Enter.

Ah, could be a bug there!

Have you tried our new project rules, as they may be better suited for what you want to do?

I apologize for my late return.

When I added it to the project rules, composer detected it and it worked. But when I run it with codebase (CTRL + Enter), the project rules, .cursorrules are not working.

1 Like

Thanks for confirming - this definitely sounds like a bug with how rules are being applied in codebase mode vs composer. I’ve flagged this to our team to investigate the difference in behavior