Visual Studio Code: Show hidden folders

Leo N
3 min readJul 4, 2020


Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity). Begin your journey with VS Code with these introductory videos. At its heart, Visual Studio Code is a code editor. Like many other code editors, VS Code adopts a common user interface and layout of an explorer on the left, showing all of the files and folders you have access to, and an editor on the right, showing the content of the files you have opened.


I am trying Visual Studio Code at this moment. Everything about Visual Studio Code look really cool to me except one thing: .git folder/file is hidden in Visual Studio Code. I often change Git setting by modifying the .git configuration file. It is really annoying for me not able to see .git files. Is there a way to reveal .git files in Visual Studio Code?


By default Visual Studio Code excludes files in a folder using the following settings:

"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true

You can change your user settings or workspace settings to show the .git folder by adding these lines:

"files.exclude": {
"**/.git": false


The settings for Visual Studio Code can be found:

  • On a Windows or Linux computer, click menu FilePreferencesSettings
  • On a Mac, click menu CodePreferencesSettings

There are both users settings (for everyone) and workspace settings for individual projects.

More instructions can be found at: User and Workspace Settings

You can see Files: Exclude setting with all of things will be hidden, You can…

Leo N

🎓 “A person who never made a mistake never tried anything new.” — Albert Einstein