9

I would like to see the .git/ folder on Visual Studio Code editor, but for some reason, it's not showing up on the sidebar where all the project folders are. I don't know if this can help you understand better the problem but this is what I get when I do a ls -la on my directory

drwxr-xr-x .git

1 Answer 1

14

Check your Visual Studio Code settings, for "files.exclude"

  // Configure glob patterns for excluding files and folders. For example, the files explorer decides which files and folders to show or hide based on this setting.
  "files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true
  },

You should be able to exclude .git, which by default is an hidden folder.

You can do so at the user-level (for all projects), or at the workspace level (just for this particular project)

https://i.sstatic.net/naXaM.png

1
  • CTRL+, to open settings Commented Mar 12, 2021 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.