[英].gitignore not appearing in VScode's file explorer
In the standard Windows Explorer, the repo contains all the expected files: A snip of my file directory .在标准的 Windows Explorer 中,repo 包含所有预期的文件:我的文件目录的片段。
In VSCode, the .gitignore
file does not display in the explorer .在 VSCode 中,
.gitignore
文件不会显示在资源管理器中。 It's still seemingly functional (all files in the .gitignore
are ignored), but it poses an annoyance.它看起来仍然可以正常工作(
.gitignore
中的所有文件都被忽略),但它带来了烦恼。 Most notably, the .gitignore
file does appear in other repos that I have on my machine.最值得注意的是,
.gitignore
文件确实出现在我机器上的其他存储库中。
Help would be appreciated.帮助将不胜感激。
Check in your project folder .vscode/settings.json
.检查您的项目文件夹
.vscode/settings.json
。
In section files.exclude
most likely you will see the line在部分
files.exclude
,您很可能会看到该行
"**/.gitignore":true
Comment out or delete it and the file will appear in Visual Code Explorer注释掉或删除它,该文件将出现在 Visual Code Explorer 中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.