.cursorignore and .gitignore in parent/subdirectories?

Say I have a monorepo that contains several services. The top-level repo has a .gitignore, and each service has a .gitignore in its own subdirectory. Git will tidily honor both the per-directory .gitignores and the root .gitignore. Two questions:

Firstly, will Cursor recognize the .gitignore files in subdirectories and honor their ignores when the monorepo root is opened in Cursor?

Secondly, if I create .cursorignore files in the subdirectories, will those be honored when the monorepo root is opened in Cursor?

Thanks!

2 Likes