# .cursorignore doesn't respect ! filter

**URL:** <https://forum.cursor.com/t/cursorignore-doesnt-respect-filter/106421>\
**Category:** Bug Reports\
**Created:** [June 20, 2025, 1:57am UTC](https://forum.cursor.com/t/cursorignore-doesnt-respect-filter/106421 "2025-06-20T01:57:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilkice](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/wilkice/32/27854_2.png) [@wilkice](https://forum.cursor.com/u/wilkice)\
**Post date:** [June 20, 2025, 1:57am UTC](https://forum.cursor.com/t/cursorignore-doesnt-respect-filter/106421/1 "2025-06-20T01:57:00Z")

</div>

### Describe the Bug

my .cursorignore file is

```auto
*
!db/
!pom.xml

```

But now I find pom.xml is enabled by cursor tab, files under db still ignored.

### Steps to Reproduce

1. create a folder
2. in this floder create a sub directory named db
3. in this db directory, create a file named test.txt. so we have a db/test.txt file
4. add below to .cursorignore

```auto
*
!db/

```

1. check if `db/test.txt` is ignored by cursor tab

### Screenshots / Screen Recordings

 ![PixPin_2025-06-20_09-53-14.png](https://us1.discourse-cdn.com/cursor1/original/3X/3/0/302d56e5c30d9067c2f1a253e1673d028ef236cd.png)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.49.6 (user setup)  
VSCode Version: 1.96.2  
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50  
Date: 2025-04-25T04:49:20.797Z  
Electron: 34.3.4  
Chromium: 132.0.6834.210  
Node.js: 20.18.3  
V8: 13.2.152.41-electron.0  
OS: Windows\_NT x64 10.0.26100

### Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [June 20, 2025, 7:42am UTC](https://forum.cursor.com/t/cursorignore-doesnt-respect-filter/106421/2 "2025-06-20T07:42:25Z")

</div>

Hey, that’s quite strange. Have you tried removing the line from the rules instead of excluding it with `!` ? Try restarting Cursor as well. Everything works as expected for me in the new version of Cursor, so maybe you should update?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 20, 2025, 7:43am UTC](https://forum.cursor.com/t/cursorignore-doesnt-respect-filter/106421/3 "2025-07-20T07:43:08Z")

</div>

Closed on July 20, 2025, 7:43am UTC

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