How to Hide Unwanted Folders and Files in Visual Studio Code
I have to admit, the last 6 months of my developers life has been spent with Visual Studio Code. It is a universal editor available on the 3 major platforms and pretty good at it. However, since VS Code uses file and folder based display of the project, the explorer view maybe cluttered with the automatically generated folders and files confusing developers. Lets take a look at a Python project as an example. Below are example files and folders generated by Python during development.
The __pycache__ folder and *.pyc files are totally unnecessary to the developer. To hide these files from the explorer view, we need to edit the settings.json for VSCode. Add the folder and the files as shown below:
"**/*.pyc": {"when": "$(basename).py"},
"**/__pycache__": true
There you go! A cleaner workspace for a happy developer. The steps above applies to all other programming environment. Happy coding!
Feel free to leave your comments, suggestions, or questions below!
Originally published at my personal blog.
If this post helped you in anyway, please click the clap 👏 button below a few times to show your support!