本文翻译自:How do I hide certain files from the sidebar in Visual Studio Code?
Using Microsoft's Visual Studio Code, how do I hide certain files and file patterns from appearing in the sidebar? 使用Microsoft的Visual Studio代码,如何隐藏侧边栏中显示的某些文件和文件模式?
I want to hide .meta
and .git
style files 我想隐藏.meta
和.git
样式文件
#1楼
参考:https://stackoom.com/question/22Soq/如何在Visual-Studio代码中隐藏侧栏中的某些文件
#2楼
You can configure patterns to hide files and folders from the explorer and searches. 您可以配置模式以从资源管理器和搜索中隐藏文件和文件夹。
- Open VS User Settings (Main menu: File > Preferences > Settings). 打开VS用户设置(主菜单:文件>首选项>设置)。 This will open the setting screen. 这将打开设置屏幕。
- Search for files:exclude in the search at the top. 搜索文件:在顶部的搜索中排除。
- Configure the User Setting with new glob patterns as n