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:

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

1 Like

thank you for this