.gitignore not appearing in VScode's file explorer

Viewed 1785

In the standard Windows Explorer, the repo contains all the expected files: A snip of my file directory.

In VSCode, the .gitignore file does not display in the explorer. It's still seemingly functional (all files in the .gitignore are ignored), but it poses an annoyance. Most notably, the .gitignore file does appear in other repos that I have on my machine.

Help would be appreciated.

1 Answers

Check in your project folder .vscode/settings.json.

In section files.exclude most likely you will see the line

"**/.gitignore":true

Comment out or delete it and the file will appear in Visual Code Explorer

Related