Removing __pycache__ from visual studio file window.

Posted by dogukanhan on February 24, 2020 · 1 min read

To edit your settings in settings.json, start by opening the Command Palette with CMD/CTRL + SHIFT + P.

The Open Settings (JSON) command will let you directly edit the settings JSON file.

Add Code below to json file.

"files.exclude": {
        "**/*.pyc": {"when": "$(basename).py"}, 
        "**/__pycache__": true,
      }

Ref :
https://stackoverflow.com/questions/30140112/how-do-i-hide-certain-files-from-the-sidebar-in-visual-studio-code/55795397#55795397
https://dev.to/thegeoffstevens/vs-code-settings-you-should-customize-5e75