Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to exclude files from Explorer in VSCode

📅 2018-Jul-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ exclude, visual studio code ⬩ 📚 Archive

Visual Studio Code displays the files of the currently open workspace or folder in an Explorer on the left. Sometimes, you may want VSCode to exclude certain files from the Explorer.

To do that:

"files.exclude" : {
    "Makefile": true,
    "*.html": true,
    "build/*": true

As shown above, filenames and globbing are allowed.

Tried with: Visual Studio Code 1.25.1 and Windows 10