Sharing
The Share Snippets
feature in the Pieces for Sublime Text Plugin is designed to streamline the process of sharing code snippets with colleagues, collaborators, or the broader development community.
This feature lets users generate shareable links for their saved code snippets directly from the Pieces for Sublime interface.
By right-clicking on a snippet and selecting the Generate Shareable Links
option, users can create a unique URL that can be shared via email, Slack, Teams, or any other communication platform.
When you click Generate Shareable Link
, the Pieces Copilot will generate the link, then open a small menu with two options—Copy
or Dismiss
, allowing you to either copy the link or disregard the link.
Selecting Copy
will copy the shareable URL to your clipboard:
This feature allows the recipient to easily access and view the snippet, even if they don't have Pieces installed or have a Pieces account.
Sharing Previously Saved Snippets
In addition to sharing code snippets on the fly, you can also open up previously saved materials and generate a shareable link from the embedded Share
button.
Additional Information with Shared Snippets
The Share Snippets
feature does more than just allow you to effectively share snippets across your entire team and other communities, though.
Each snippet comes packaged with contextual metadata, such as the snippet type, tags, descriptions, and related links and authors.
Additionally, you'll see a section titled Sensitive Information.
Our in-house ML model scans snippets for potentially sensitive information, such as API keys or passwords, and alerts you so that you can make an informed decision before sharing the snippet.
The scan happens locally on your device using on-device machine learning models. Before the snippet is uploaded to the cloud for sharing, it’s checked locally to ensure that any sensitive information is identified and flagged for your review.