Pieces for Sublime Text Plugin
The Pieces for Sublime Text Plugin is a powerful tool that integrates directly into the Sublime Text editor. It allows users to manage saved code snippets and access Pieces Copilot features.
-
Pieces Copilot: Start generative AI conversations inside Sublime, add entire files or projects are context, generate code, add comments, and more.
-
Snippet Management: Save, search, and share code snippets.
Follow these instructions to download and install the Pieces for Sublime Text Plugin.
Explore troubleshooting options, navigate to our support page, or directly book a call with our engineers.
This plugin offers users with two core pieces of functionality—the first pillar is to provide users with Pieces Copilot for troubleshooting code, adding code comments, and starting contextualized generative AI conversations.
The second pillar is the ability to manage saved materials through interacting with PiecesOS inside the Sublime Text editor, providing functionality like saving, editing, searching, and sharing code snippets.
Leveraging the Pieces Copilot
You can start conversations inside the Sublime Text editor with your LLM of choice, including starting conversations about a selected portion of code, a file, or across your entire project.
What Are Copilots?
Copilots are conversational generative AI tools that assist with debugging troublesome code, adding documentation, refactoring existing bash scripts or functions (or other code), and highlighting potential areas of improvement across a file or entire codebase.
Managing Code Snippets
Users can save snippets by right-clicking the selected code and choosing the Save to Pieces
option, edit saved materials with a simple command, and share snippets via generated shareable links.
Commonly saved snippets include utility functions, database queries, and API request templates—these are frequently reused, so saving them streamlines development and keeps reusable code easily accessible.
When a snippet is saved, the plugin also automatically generates and associates meta data, like tags, commit messages, code type, smart descriptions, as well as code authors and related resources.
Referencing & Reusing Saved Snippets
There are 3 ways to search through your saved snippets in the Pieces for Sublime Text Plugin:
-
Fuzzy search: Quickly find snippets even if your search term doesn’t match the saved text exactly. This is useful for locating snippets with slight variations in names or typos.
-
Full-text search: Searches through the entire content of your saved snippets. Ideal for when you remember part of the snippet but not the exact title or tags.
-
Neural code search: Uses AI to understand the context of your query, making it possible to find snippets even when your search term is related conceptually rather than textually. This is useful for complex searches where exact matches aren’t obvious.
These options allow you to search with vague queries or get specific when you know exactly what you’re looking for, so you can find and reuse your snippets.
Once you’ve located a snippet using one of the search methods, you can then refactor the code to your needs, share the code with other developers, or paste it directly into your code.
Download the Pieces for Sublime Text Plugin Today
Follow the installation instructions to get started with the Pieces for Sublime Text Plugin.