Hide folders in Visual Studio Code Explorer

Problem:

I have a lot more files and folders on disk than I want to show in Visual Studio Code.

image

Solution:

Use the files.exclude setting to hide folders and files.

Explanation:

  1. Press F1
  2. Type settings
  3. Select Open Workspace Settings
    image
  4. On the right side type files.exclude and press Enter
    image
  5. Add additional entries and save the file
    image
  6. Enjoy your new clean Explorer
    image

Add comment

Loading