In this step-by-step guide, you will learn how to show hidden directories in Visual Studio Code.

In Visual Studio Code, you may not be able to see some directories that you need. This is because they are hidden by default.

To check if the directory you’re looking for is excluded, follow the steps below:

Step 1: Select Code –> Preferences –> Settings menu (or File –> Preferences –> Settings in Windows)

Visual Studio Code settings

You can change your settings at the User level (by keeping the User tab selected) or switch to the Workspace tab to make localized changes.

Step 2: Expand Text Editor and select Files

Files settings under Text Editor

Step 3: Scroll down until you see the Exclude section

Exclusion patterns from files

Step 4: Click the X icon next to the directory you would like to see on the left pane

Git selected to exclude

Step 5: You should be able to see the directory on the left pane:

Git directory is visible