Clarification on Rules

I would like some clarification on where to put a general rule that the composer needs to follow. I was using .cursorrules but now I see that this is deprecated.

Specifically, I have a rule that says “Don’t remove comments”, because composer always deletes my comments and it’s frustrating having to reject changes that combine something useful with the removal of a comment. It’s often one diff, updating a function and removing the comment above, so I can’t selectively accept and reject.

This rule never worked for me. If it’s in the wrong place, where is the best place to put a directive like this if I want it to apply to all composer interactions?

Hey, are you sure your rules aren’t working? Check if the .cursorrules function is enabled in your settings. You can also add global rules directly in the settings.

To ensure your rules are working, you can specify something like: “Start each response with :sunglasses:”. If you don’t see this emoji in the response, it means your rules aren’t working, and you need to start a new session, as this session might have a context window overflow.

Thanks a mil. The box was checked but the emoji didn’t show up in Composer for any new chats until I deleted the entire Composer history and now it works.

Where should general rules like this that apply to all files and edits go now that .cursorrules is being deprecated?

You can use global rules or use new project rules.