title: Gitignore: Ignore all .vscode directories, but include the top-level launch.json
body: <p>I want to ignore all <code>.vscode</code> directories that may show up in my repository, except for the top-level one. In that top-level one I want to ignore all files except for the <code>launch.json</code>.</p>
  
  <p>I tried to no extent:</p>
  
  <pre><code>**/.vscode/
  !/.vscode/
  /.vscode/*
  !/.vscode/launch.json
  </code></pre>
  
  <pre><code>**/.vscode/
  !/.vscode/
  !/.vscode/launch.json
  </code></pre>
  
  <pre><code>**/.vscode/
  !/.vscode/launch.json
  </code></pre>
  
  <pre><code>**/.vscode/*
  !/.vscode/launch.json
  </code></pre>
  
  <pre><code>**/.vscode/
  /.vscode/!launch.json
  </code></pre>