Search for "Polacode" in extensions and install it:
After installer, open "Command palette" Type "polocode".
Use mouse to select code you want to create snippet.
Then it can generate a shareable code snippet image:
Or you can use online tool, such as https://carbon.now.sh/