Snippets are a quick, easy way to share bits of code or text with your Slack team.
Add a new snippet
Next to the Slack message box, click thebutton.
Select Code or text snippet.
When you’re finished, click Create Snippet.
Keyboard shortcut:⌘Enter (Mac) or CtrlShiftEnter (PC) will open a pop-up window for creating a new snippet in Slack.
Share a snippet
Sharing a snippet in Slack lets your team members download it, view a raw version, or leave comments.
For sharing options, just mouse over the snippet and click the More actions menu.
To share the snippet in a channel or direct message, select Share and choose where to post your snippet.
Create a public link
Snippets can also be made public for easy sharing outside of Slack. In the More actions menu (as shown above), select Create public link. Your public link will appear at the top of the snippets page — just copy the link to share it!
In the future, if you need to make the snippet private again, just follow the same steps and select Revoke public link.
Thanks so much for your feedback!
Thanks for your feedback.
Oops! We're having trouble. Please try again later!