Cursorignore in workspace

Hello I want to know if its possible to work with the following set up:

One workspace with 2 folders.

  • 1st folder with all my application code. “core”
  • 2nd folder with cursor files (.cursorignore, context.md, etc) “config”

Basically I cannot commit files related to cursor in my application source code, thats why i need to work with a different folder.

My issues is that the .cursorignore in my “config” folder is not ignoring files from “core” folder.

.env
*.env
env.*
**/.env
**/.env.local
**/.env.development
**/.env.production
**/.env.test
**/.env.test.local
**/*.env
**/env.*

How can I fix this and identify the files that are currently ignored?

Could you just use .gitignore so folders you do not want included do not get committed to git repo? If not from what I understand, if you are using a workspace, the first folder needs to be the one with the cursor rules. as thats the only one that will get picked up, so maybe make sure the folder is first and also alphabetically first (not sure if that also matters). But if you could just do gitignore you would be better off.

I have another idea but not sure I need to test it - some .cursor files seem to be allowed in the user directory (such as .cursor/mcp.json) - I dont think its supported, but you could try to put rules in their and see if the get picked up.

If not, this would be a great feature add by cursor.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.