title: How to add "collection" field to metadata for Solana NFTs with Visual Studio Code
body: <p>I'm trying to add the collection field (name and family) to my metadata using VSC. Not sure where to begin or how to do it. Any help appreciated. Thanks!</p>
  <pre><code>{
    &quot;name&quot;: &quot;Solflare X NFT&quot;,
    &quot;symbol&quot;: &quot;&quot;,
    &quot;description&quot;: &quot;Celebratory Solflare NFT for the Solflare X launch&quot;,
    &quot;seller_fee_basis_points&quot;: 0,
    &quot;image&quot;: &quot;https://www.arweave.net/abcd5678?ext=png&quot;,
    &quot;animation_url&quot;: &quot;https://www.arweave.net/efgh1234?ext=mp4&quot;,
    &quot;external_url&quot;: &quot;https://solflare.com&quot;,
    &quot;attributes&quot;: [
      { &quot;trait_type&quot;: &quot;web&quot;, &quot;value&quot;: &quot;yes&quot; },
      { &quot;trait_type&quot;: &quot;mobile&quot;, &quot;value&quot;: &quot;yes&quot; },
      { &quot;trait_type&quot;: &quot;extension&quot;, &quot;value&quot;: &quot;yes&quot; }
    ],
    &quot;collection&quot;: { &quot;name&quot;: &quot;Solflare X NFT&quot;, &quot;family&quot;: &quot;Solflare&quot; },
    &quot;properties&quot;: {
      &quot;files&quot;: [
        {
          &quot;uri&quot;: &quot;https://www.arweave.net/abcd5678?ext=png&quot;,
          &quot;type&quot;: &quot;image/png&quot;
        },
        {
          &quot;uri&quot;: &quot;https://watch.videodelivery.net/9876jkl&quot;,
          &quot;type&quot;: &quot;unknown&quot;,
          &quot;cdn&quot;: true
        },
        { &quot;uri&quot;: &quot;https://www.arweave.net/efgh1234?ext=mp4&quot;, &quot;type&quot;: &quot;video/mp4&quot; }
      ],
      &quot;category&quot;: &quot;video&quot;,
      &quot;creators&quot;: [
        { &quot;address&quot;: &quot;SOLFLR15asd9d21325bsadythp547912501b&quot;, &quot;share&quot;: 100 }
      ]
    }
  }
  </code></pre>