Share links to snippets that open directly in VS Code.
How to Share a Snippet
Select the code snippet you want to share.
Press Alt+Shift+S (Option+Shift+P on macOS).
The snippet URL link is automatically copied to your clipboard.
Share the link (e.g. slack) to anyone to have it highlight the snippet in their VS Code.
Notebooks
But wait, there's more!
Snippets are shared via Notebooks, where you can plan out and think through code design problems with your team.
Notebooks can then be used to dynamically guide developers as they code, tightening the loop and keeping alignment between design discussions and implementation efforts.
Creating/Adding to a Notebook
Let's get you adding your own code snippets to a new Notebook!
Select a snippet of code.
Press Cmd+Shift+P to open the command palette and type Add to Notebook. Tip — press Alt+P (Option+P on macOS) as a shortcut for step 2.
Follow the prompts to add your code snippet to a Notebook.
Opening Notebooks
Press Cmd+Shift+P to open the command palette and enter Open Notebook.
Select a Notebook from the drop-down and it will open in your browser.