Good examples of .cursorrules file?

@truell20

Can you please let me know:

  1. Where is the .cursorrules file located?

  2. Is there just one .cursorrules file?

  3. In Cursor Settings > General, what is the relationship between:

  • The Rules for AI textarea field
  • The Include .cursorrules file toggle option
  1. Do rules added to the Rules for AI textarea automatically get added to a .cursorrules file?

I am having difficulty conceptualising what these two field settings do, how they relate to each other and what their scope is.

I added a ‘rule’ to the Rules for AI area:

Start your response with a pirate joke.

thinking that it might create a .cursorrules file in the folder where I was working, but it didn’t.

Thank You.

Edit:

Maybe this is related, but I’d love more clarification, thank you.

https://forum.cursor.com/t/split-rules-for-ai-into-global-and-workspace-project-scopes/1708/5?u=litecode

3 Likes