Cursor ignores .cursorignore on wsl2

Describe the Bug

I’ve added a file to .gitignore. This causes cursor to no longer see it. I try adding it to .cursorignore as “!filename.txt”, but it does not change anything. The only way I can get cursor to see the file is to remove it from .gitignore, which I don’t want to.

Steps to Reproduce

0: Open a wsl2 project in cursor

  1. Add a file, verify you can open it with cursor using ctrl+p
  2. Add th efile to gitignore, verify you can no longer open it with ctrl+p
  3. Add the file to .cursorignore. Still unable to open it with ctrl+p

Expected Behavior

After adding the file to .cursorignore it should be possible to open it using ctrl+p

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.2 (user setup)
VSCode Version: 1.99.3
Commit: d01860bc5f5a36b62f8a77cd42578126270db340
Date: 2025-08-07T17:16:23.005Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Additional Information

N/A

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @techybolek, .cursorignore only affects indexing; it does not affect which files can be opened with the editor. You can choose whether ignored files should show up in the editor with the explorer.excludeGitIgnore and search.useIgnoreFiles settings:

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