Reputation: 1810
In VSCode I used to be able to see my .env
file on the explorer view and search for it using 'go to file', I'm not sure what happened but now my .env is invisible, can't search for it, can't see it.
I have other files .env.staging
.env.production
these all show up just find, but for some reason .env is invisible
The only pluggin I'm currently using is Vim, but I disabled it and the issue remains.
Upvotes: 1
Views: 3008
Reputation: 1
in december/2024:
only set this value to false in settings.json
"explorer.excludeGitIgnore": false,
or set in this option
Upvotes: 0
Reputation: 5851
In my case, it was due to the .env file being Git-ignored, and the following checkbox was set in the settings:
Upvotes: 1
Reputation: 13283
Go to your settings.json
find "files.exclude"
and either comment out or remove .env
"files.exclude": {
"**/.classpath": true,
"**/.factorypath": true,
"**/.project": true,
"**/.settings": true,
"**/node_modules": true
// "**/.env": true
},
Upvotes: 5