UNBLOCK .env.local

I want to unblock the .env.local from the cursorignore file but the cursor ignore file is empty and i can not use this file on my chat. Anyone know how can i fix that? Thanks

1 Like

Make file env.template and make cursor use it. I agree that it is bad, that you can’t control which files are “secrets” and can’t whitelist them.

You can remove this specific file from the global settings, let me know if that helps

1 Like

The instructions said to add !.env* to .cursorignore to un-ignore from the global list, but it didn’t work. FYI.

:+1::+1::+1:thanks,your answer solved my biggest headache after upgrading to version 0.49

Didn’t work for me either.

To get .env un-ignored you have to go into Cursor → General settings and find where the global list matches the picture above, then click the trash can for the .env lines. Doing the “!” approach listed on the instructions didn’t actually work, but deleting it from the list under settings did work.

Didn’t seem to work on my end?

The way that @roy7 pointed out didn’t work either.
image

So I guess it’s actually under Preferences → VS Code Settings → Cursor → Global Cursor Ignore List. After removing the two lines related to .env, mine looks like this:

3 Likes

That worked!
Deleting it from “General”, “Appearance”, “Open editor settings”, and then find the global ignore list, click delete on the right side, worked.

2 Likes

thank you for this

Didn’t work for me either, ive spent time wasting around this i want the agent to be able to see it, its in .gitignore which is fine. Instructions literally say add the file to .cursorignore, using a ! which I did, but it does not work.

Yeah the instructions are wrong. Have to delete it from list as per above posts.

1 Like

thank you, that worked. 3 fkn days fkn around with this :*x

Cursor Settings > General Settings > Open Editor Settings

Files: Exclude

Make sure that .env is not included in the exclude list. This prevents the .env file from being displayed in your project.

Then,

Cursor › General: Global Cursor Ignore List

Remove the .env file by clicking on the trash can icon, save your files, close the cursor, and reopen it.

The issue will be resolved. (It’s not really an issue. :slight_smile: )

1 Like