# Good examples of .cursorrules file?

**URL:** <https://forum.cursor.com/t/good-examples-of-cursorrules-file/4346>\
**Category:** Discussions\
**Created:** [April 17, 2024, 5:55pm UTC](https://forum.cursor.com/t/good-examples-of-cursorrules-file/4346 "2024-04-17T17:55:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![litecode](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/litecode/32/2966_2.png) [@litecode](https://forum.cursor.com/u/litecode)\
**Post date:** [July 21, 2024, 11:56am UTC](https://forum.cursor.com/t/good-examples-of-cursorrules-file/4346/3 "2024-07-21T11:56:16Z")

</div>

@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.

 ![curserrules and rulesforai](https://us1.discourse-cdn.com/cursor1/original/2X/d/d7ac3ba2731c98b8caccd2caddfb2b917f4f6e4f.png)

**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](https://forum.cursor.com/t/split-rules-for-ai-into-global-and-workspace-project-scopes/1708/5)

---

_[View the full topic](https://forum.cursor.com/t/good-examples-of-cursorrules-file/4346)._
