Saving
The Pieces for Sublime Text Plugin lets users save code snippets directly from the editor.
Users can effortlessly save snippets by highlighting the desired code, right-clicking, and selecting the Save to Pieces
option.
Use this feature to save snippets of template code, API calls, boilerplate/reference snippets, HTTP requests, functions, classes, and more.
This feature ensures that your valuable code snippets are securely stored and easily accessible for future use, streamlining your workflow and enhancing productivity.
What Happens When You Save a Snippet
More than just the snippet's contents get saved to your Pieces Cloud.
Our AI-enhanced saving feature also stores:
-
the type of snippet
-
associated tags
-
associated commit messages
-
a generated smart description
-
suggested searches
-
related links
-
related people
... while also looking for sensitive information, like API keys, passwords, authentication tokens, SSL certificates, and more.
Where Saved Snippets Live
Saved snippets are stored on-device in your local snippet repository, so they’re always accessible—even if you’re offline.
To view your saved materials, you have two options:
View Saved Snippets via Command Palette
Open the command palette using ⌘+shift+p
(macOS) or ctrl+shift+p
(Windows / Linux) and type Pieces: Open Saved Materials
.
This will open a scrollable drop-down menu of the most recent saved snippets. To find a particular snippet, you can enter a query into the text field.
View Saved Snippets via Pieces for Developers Desktop App
You can also find saved materials in the Pieces for Developers Desktop Application, since the snippets you save in the Pieces for Sublime Text Plugin are also available alongside saved materials from other Pieces software.
To do so, open the Pieces Desktop Application, then:
-
Locate the icon on the upper left corner of the screen near the text input field.
-
Click the icon to enable the dropdown menu.
-
Select Saved Materials.