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
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.
The instructions said to add !.env* to .cursorignore to un-ignore from the global list, but it didn’t work. FYI.
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.
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:
That worked!
Deleting it from “General”, “Appearance”, “Open editor settings”, and then find the global ignore list, click delete on the right side, worked.
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.
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. )