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.
Playbooks
But wait, there's more!
Snippets are shared via Playbooks, where you can plan out and think through code design problems with your team.
Playbooks 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 playbook
Let's get you adding your own code snippets to a new playbook!
Select a snippet of code.
Press Cmd+Shift+P to open the command palette and type add to playbook. Tip — press Alt+P (Option+P on macOS) as a shortcut for step 2.
Follow the prompts to add your code snippet to a playbook.
Opening playbooks
Press Cmd+Shift+P to open the command palette and enter open playbook.
Select a playbook from the drop-down and it will open in your browser.