I have this one project for which VS Code is not showing any files or directories in the Explorer tree
The actual project files and directories at the root are these:
VS Code is working fine for other projects.
How can I fix this?
Another solution: Go to Settings and check "Files: Exclude" in both "User Settings" and "Workspace Settings". Delete the files/folders needed to appear.
Try removing the folders inside ~/Library/Application Support/Code/
(except the User/
folder because that contains your keybindings and settings configurations) and then restart Code.
I had that same problem today (Version: 1.61.0) and fixed it by:
This happened to me a while ago and it took me over a month to realize what was happening. In my case, for some reason I added the glob pattern "**/*" for the property Files: Exclude. Basically, I told vscode to exlude all the files in the project, just remove the pattern and you should be fine. I hope someone finds this useful.
The easiest way it worked for me was to drag the folders from Windows Explorer into VS Code. That restored the entire directory tree for me.
I was stuck on this for a while but I figured out it was a permissions error. Run ls
in the terminal to see if you have the same error as me, if you do it should tell you permission denied.
The fix is very easy:
sudo bash
chmod 775 .
In vscode press CRTL + SHIFT + E it will make explorer visible, then right click on explorer -> Keep "Explorer".
create a folder using terminal with command "mkdir folder-name" then go to "file" in menu and then to "open folder" then select the folder u used while creating mkdir. This woked for me.
go to the directory you want then press right click and press open with then select vs code