Create and Manage Snippets
You can create a snippet from the Snippets page or from a text selection in a code editor. You can only add one file when you create the snippet, but you can add more later.
Action | How To |
---|---|
Create a snippet |
|
Create a snippet from a selection |
You can create a snippet from a file that’s open in the code editor.
|
Share or stop sharing a snippet |
After you create a snippet, you may want to share it with your team members, or you may want to stop sharing it if it is already shared. You can set the share status for any snippet that you own. To share a snippet, in the My Snippets view of the Snippets
page, click Share
|
Edit a snippet’s title |
You can edit the title of a snippet that you own. On the Snippets page, click the
snippet name, and then click Edit
|
Delete a snippet |
You can delete a snippet that you own. On the Snippets page, click the snippet name, and then click Delete. In the Delete Snippet dialog box, click Yes to confirm. |