title: Suppress Binary files in VS Code File Explorer
body: <p>I have my C++ folder which have all the C++ codes and their corresponding binary files. I have been looking around to find a way to hide them from the explorer view of VS Code but could not find a suitable pattern as they have no extension.</p>
  
  <p>I tried this in the <em>settings.json</em> file, but it hides everything in the folder.</p>
  
  <pre><code>    "files.exclude": {
                    "**/*": true,
                    "**/*.cpp": false
  }
  </code></pre>
  
  <p>Then I tried this, but it hides both the files.</p>
  
  <pre><code>"files.exclude": { 
          "**/*" :{ "when": "$(basename).cpp" }     
      }
  </code></pre>
  
  <p>So I tried this, but it hides the binary files and not the c++ files.</p>
  
  <pre><code>"files.exclude": { 
          "**/*.cpp" :{ "when": "$(basename)" }     
      } 
  </code></pre>
  
  <p>So I thought swapping the two terms might work.</p>
  
  <pre><code>"files.exclude": { 
          "**/$(basename)" :{ "when": "$(basename).cpp" }     
      }
  
  </code></pre>
  
  <p>But it doesn't work.
  If anyone can suggest something.</p>