Pieces
A comprehensive solution for saving, sharing, and reusing code materials in your Sublime Text environment, with a powerful integration of AI assistance and Copilot and many LLM models including ChatGPT functionality, specifically designed to enhance your coding workflow.
Details
Installs
- Total 305
- Win 146
- Mac 114
- Linux 45
Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 2 | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 1 | 4 | 2 | 6 | 3 | 3 | 1 | 1 | 1 | 2 | 5 | 0 | 4 | 1 | 1 | 1 | 0 | 2 | 2 | 2 | 2 | 0 | 0 | 3 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 3 | 0 | 0 | 0 | 2 | 1 |
Mac | 1 | 0 | 0 | 4 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 2 | 2 | 1 | 0 | 1 | 2 | 2 | 2 | 1 | 1 | 1 | 1 | 2 | 4 | 4 | 1 | 1 | 2 | 0 | 2 | 0 | 4 | 1 | 1 | 3 | 1 | 0 | 1 | 2 | 2 | 0 | 1 | 0 | 1 | 2 |
Linux | 0 | 1 | 0 | 2 | 1 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 0 | 0 | 2 | 2 | 1 | 0 | 1 | 1 | 0 | 0 | 7 | 1 | 0 | 0 | 0 | 1 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 |
Readme
- Source
- raw.githubusercontent.com
Pieces for Developers | Sublime Plugin
Website • Pieces OS Documentation • Pieces for Sublime Docs
Important
Please make sure you have Pieces OS installed to run the Package.
Getting Started with the Pieces Sublime Plugin
Welcome to the Pieces Sublime Plugin!
The Pieces Sublime plugin is your gateway to managing your saved code snippets in Pieces directly inside Sublime Text. Seamlessly interact with Pieces OS and enhance your productivity with code snippet management, in-window generative AI conversations, intelligent snippet searching, and AI debugging and code commenting.
Configuration
Before diving in, let's ensure everything is set up to your liking. You can customize the LLM model or the host by navigating to:
Preferences > Package Settings > Pieces > Settings
.
You can also open the settings from the command palette Pieces: Open Settings
.
LLMs Supported by the Pieces for Sublime Plugin
Currently, the Pieces for Sublime Plugin supports 16 AI models, so you can choose the one that best fits your needs.
- GPT-4o
- GPT-4
- CodeLlama GPU
- GPT-3.5-turbo
- Phi-2 CPU
- GPT-4 Preview
- Codey (PaLM2)
- Llama2 GPU
- (Gemini)
- GPT-3.5-turbo-16k
- Phi-2 GPU
- Mixtral GPU
- NeuralHermes-2.5-Mistral-7B CPU
- NeuralHermes-2.5-Mistral-7B GPU
- (PaLM2)
- Llama2
Features
Logging Into or Out Of Pieces Account
Using the command Pieces: Connect Personal Cloud
or Pieces: Disconnect Personal Cloud
from your command palette logs you in and out of your Pieces account. An output panel is available to check your cloud status and login status.
Logging into your Pieces account lets you sync your snippets and settings between Pieces OS and other Pieces plugins.
Right Click to Save to Pieces
Saving a new snippet in Pieces is a breeze! Just select the code you want to save, right-click to open the context menu, and choose Pieces > Save to Pieces
. Your code is now safely stored!
Engage with the Pieces Copilot
You can ask the Pieces Copilot questions about your code, view your conversations list, or start a new conversation by opening the command palette and entering Pieces: Copilot
. Your selected LLM will then output an answer as a generation on the right side of your screen, right in your Sublime Text editor window.
Copilot Ask
Need some help from the Pieces Copilot? Just select the code and right-click to open the context menu and choose Pieces > Ask Copilot
.
AI Debugging
You can utilize the LLM capabilities of Pieces Copilot with an intelligent debugging feature, helping you identify errors in your code and preview potential solutions before applying changes.
Code Comments
The mark of well-written, high-quality code (aside from functionality!) is code comments. This can get tedious, though, so the Pieces for Sublime Plugin comes with a built-in intelligent commenting feature. Selecting the Add code comments
option from the context menu will add comments to your selected portion of code.
Let Copilot do the heavy lifting for you!
Ask about the current Project or File
The Pieces for Sublime Plugin lets you ask context-focused questions based on the file you're working in, or the entire project itself. This is an extremely useful feature for new developers getting to know an unfamiliar codebase just as well as experienced developers looking to cut down on production time.
- Ask About the Current Project: Use the command
Pieces: Ask about the current project
to ask the Pieces Copilot a question about your entire project. - Ask About the Current File: Use the command
Pieces: Ask about the current file
to get assistance with the current opened file.
Sublime Snippet Management
You can import and export code snippets you've saved using other Pieces software for use in or from Sublime.
- Import Sublime Snippet: Use the command
Pieces: Import Sublime Snippet
to import a Sublime snippet into Pieces. - Export Pieces Material: Use the command
Pieces: Export Pieces Material
to export a Pieces snippet back to Sublime.
Open Saved Materials
Ready to access your saved materials? It's super easy! Just follow these steps:
- Open your command palette (
Ctrl+Shift+P
orCmd+Shift+P
). - Run the command:
Pieces: Open Saved Material
. - Select the asset you wish to open from the list.
Your material is now open and ready for you to use.
Find your Saved Code Snippets
You can search for saved snippets using Pieces: Search
.
There are three types of searching:
Fuzzy Search: Fuzzy Search finds snippets that are likely to be relevant, even if they are not exact matches. It is particularly useful for handling typos, misspellings, and variations in data.
Full-Text Search: Full-Text Search is a technique used to search for documents or records that contain the exact sequence of words in the search query. It indexes all the words in a document to enable fast and efficient searching.
Neural Code Search: Neural Code Search leverages neural networks and machine learning to improve the search and retrieval of code snippets. It allows you to use natural language to describe what you are looking for, capturing the semantics and context of the code to provide more accurate and relevant results.
Edit Saved Materials
Want to make changes to your saved materials?
Switch to editor mode by clicking the Edit button on your saved snippet. Modify the content as needed and save your changes with a simple command/ctrl + s
.
Shareable Link
If you want to share a saved snippet with another developer (even if they don't have a Pieces account), you can.
Just select the code, right-click to open the context menu, and choose Pieces > Generate shareable link
.
You can also share a saved snippet by opening it with Pieces: Open saved Material
and clicking the Share button.
Auto Complete
Enhance your coding speed with auto-completion using saved Pieces Snippets. When you have Pieces Snippets saved, you will receive automatic code completions tailored to specific programming languages.
You can enable or disable this feature in your settings by entering Pieces: Open Pieces Settings
in your command palette. Then, overwrite the snippet.autocomplete
object to false
to turn the auto-completion feature off.
Reload the Plugin
If you're experiencing an issue or something isn't working properly, try reloading the plugin using the command Pieces: Reload Plugin
in your command palette.
Don't forget to make sure Pieces OS is running.
Get Support or Share Feedback
Experiencing an issue or have feedback for the Pieces team?
No worries, we've got you covered.
Simply open the command palette and run Pieces: Get Support
. From here, you will find resources where you can connect with the Pieces team.
Connect with the Pieces Community
Join our Discord Community
Become a part of our Discord community to stay updated and engage in discussions about our features.
Submit a Feature Request or Feedback
Have an idea for a new feature? Feel free to submit your suggestions on our GitHub page.
Tech Blogs
Stay connected and up-to-date with our latest blogs.
Plugins
Explore our collection of awesome Pieces plugins.
View Power Tips & Best Practices
Don't forget to check out our YouTube channel for Power Tips & Best Practices
Privacy and Data Collection
We take your privacy seriously. We are committed to ensuring that your data remains private and secure. To that end, we want to make it clear that:
We do not collect any client-side telemetry.