Frequently Asked Questions
FAQ: How can I discover useful snippets within the Pieces for Developers Desktop App?#
Try using Snippet Discovery to discover snippets from an existing project or file.
For Best Results: We recommend that users add 5-10 project-specific snippets to their repository before performing Snippet Discovery on a local project.
Pieces trains Snippet Discovery on the common themes within a project to better extract what you need, when you need it.
FAQ: How do I leverage the Pieces Actions Menu to maximize user flow?#
The Actions Menu offers a wide range of valuable features that allow users to more efficiently manage and edit their content. By streamlining these processes and minimizing interruptions to the user's workflow, this feature helps to increase productivity and optimize the user's experience.
These options are accessible through a keyboard shortcut, ensuring that users can quickly navigate the menu without the need to break their focus.
|⌘ + Return||CTRL + Enter|
FAQ: How does "Sort by Suggested" differ from "Sort by Last Added"?#
The Pieces for Developers desktop app provides users with a few options to sort their snippets. In addition to alphabetical sort and sorting by language, you can sort by suggested or by last added.
- Sort by Suggested
- This will resurface previously saved snippets and reorder your list or gallery to put relevant snippets closer to the beginning.
- It's useful for quickly accessing relevant snippets from your current workflow.
- Sort by Last Added
- This view displays your snippets in the order in which they were saved. New snippets are at the beginning.
- It's useful for users that want to stay up-to-date with their latest saves.
FAQ: Can I edit a snippet in the Pieces for Developers Desktop App?#
Yes! Users can easily modify their selected snippet by clicking the edit button within the snippet's text field.
|⌘ + E||CTRL + E|
To Cancel Edits, simply press the Escape key.
To Save Edits, hit the Save icon in the top right corner of the edit window. After making an edit, a success notification will verify the changes have been saved.
Overall, this feature provides a more efficient and streamlined way for developers to make quick edits to their code snippets.
FAQ: Can I modify my Confirmation Notification Settings?#
Yes. Users can minimize noise levels by toggling off confirmation settings for various actions in the Pieces for Developers Desktop App.
Navigate to Settings -> Customize -> Confirmation Settings
You can toggle the following confirmations:
- Created snippet
- Created snippet tag(s)
- Created related link(s)
- Added related person(s)
- Detected sensitive(s)
Additional settings that can be toggled:
- Shareable link updates
- Sensitive alerts when generating a shareable link
FAQ: How do I get started with the Pieces + GitHub Integration?#
- Only accounts with matching primary email addresses will be linked.
- If the accounts do not match, a new, separate account will be created.
1. Link your Account
Settings -> Connect Accounts -> Connect to Google
Verify your connection to the Pieces Cloud before moving forward
2. Authorize with GitHub
Settings -> Connect Accounts -> Connect to GitHub
After selecting the GitHub icon, a "Link your Account" menu will come into focus.
Note: Verify your connection through the settings section "Manage Cloud Integrations".
At this point, you should:
- Be logged in to Pieces with a personal email and/or Google account
- Be connected to your Pieces Cloud
- Be authorized via GitHub connection
FAQ: How do I Export a Gist to GitHub?#
- Generate a shareable link in the Pieces desktop app
- Inside this menu, select the option "Share as GitHub Gist"
- You will see a GitHub Menu
- You can give your snippet a custom Name & Description (optional)
- Click "Create" to share to GitHub
Note: Gists can be set to private in the Share a Gist menu, though they are public by default.
FAQ: How do I Import a Gist to the Pieces for Developers Desktop App?#
Prerequisites to Import from GitHub:
- Connect to Pieces OS
- Sign in to Pieces via your personal email or Google account
- Authenticate with GitHub
- Your sign in account must be linked with GitHub account. Mismatched accounts will fail when attempting to Import from GitHub.
To Perform a Gist Import
- Choose “Discover” above your Snippet Carousel
- Choose “Select Gists”
- Make sure Pieces account is connected to your GitHub account
- Browse your Gists in the Desktop App and select the ones you'd like to import
FAQ: If I delete a Gist in GitHub, will the snippet also be deleted in the Pieces Desktop App?#
Deleted Gists will not be deleted in Pieces for Developers.
FAQ: I deleted a Gist from GitHub. Can I recover the original Gist?#
Yes, a Gist can be recovered if you saved the original snippet in Pieces.
To Redo a Gist:
- Locate the desired snippet in the Pieces desktop app
- Navigate to the shareable link within the snippet's information view
- Click the GitHub icon to view the "Share as GitHub Gist" menu This will repopulate your GitHub Gist list with the selected snippet
FAQ: What are the key benefits of the Pieces for GitHub Integration?#
1. Enhanced Collaboration#
By automatically capturing relevant Git history, including collaborator profiles, commit messages, and related pull request and branch links, Pieces enables users to search their snippets via collaborator profiles, making it easier than ever to know who to reach out to or add to a pull request, ultimately enhancing collaboration.
2. Fully Configurable#
The context captured by the Git Context feature is fully editable, searchable, and shareable, giving users complete control over their snippets and making it easy to find and reuse code. Additionally, all the context information is configurable in the Pieces Settings, allowing users to customize their experience to best fit their needs.
3. Context Awareness#
Pieces for Developers makes it easy for developers to save from their IDE and allow the Pieces GitHub integration to automatically include a list of people who made commits to the code, enabling them to understand who wrote and interacted with the code. This feature is particularly useful for teams who want to collaborate more effectively.
FAQ: How do I toggle Light & Dark Mode?#
To toggle between Light Mode and Dark Mode, use the Keyboard Shortcut:
|⌘ + Shift + T||CTRL + Shift + T|
Or navigate to the Pieces User Settings -> Customize -> Toggle Light Mode.
FAQ: What is Pieces OS? How does it work?#
Pieces OS is the background service that enables Pieces to work locally and handles communications with any integrations. Without Pieces OS, Pieces for Developers will not be able to save your snippets or interact with any of your plugins.
Pieces OS also enables our cloud-enabled features like link sharing.
Head over to https://code.pieces.app/install to get started.
FAQ: I'm Disconnected from Pieces OS. Now what?#
If you're unable to connect to Pieces OS:
- Navigate to your applications folder from the Finder window
- Locate Pieces OS & open the application
If you merely closed the app on accident, the steps above should resolve your connection issue.
FAQ: What are Collections?#
Collections allow users to save curated groups of code snippets from the cloud-hosted Pieces Collections site. This makes it easy for developers to reference similar code snippets together and quickly access them when needed.
Where can I find Collections?#
|⌘ + Shift + C||CTRL + Shift + C|
You can also add collections from the "Add a Piece" menu.
FAQ: How do I convert a saved image to code or text?#
- Open the Pieces for Developers Desktop App.
- In the snippet list or carousel, focus on the image you want to extract code or text from.
- Click on the "View as Code" button in the menu to the right of the window.
- Pieces uses OCR to detect and extract code or text from the image, which will then be displayed on the screen.
- You can now copy, modify, and share the extracted code as needed.
It's important to note that the accuracy of the extracted code or text may vary depending on the quality of the image and the complexity of the code.
FAQ: How many languages does Pieces Desktop App Support?#
Pieces supports nearly 40 programming languages, and adds more all the time.
- Emacs Lisp
FAQ: What is Activity View?#
In Activity View, developers can quickly and easily navigate back to their most recent work, making it an essential feature for anyone who wants to stay organized and productive.
In Activity View, you can see when you add or adjust context for your snippets, including:
- Related links
- Snippet names
- Snippet languages
- Related people
- Created snippets
- Snippet titles
- Snippet references
|⌘ + Shift + A||CTRL + Shift + A|
Is this a manual process?#
No. This feature updates in real time as users work, providing a comprehensive view of their recent activity, including recently opened snippets and files, edited code, and more.
FAQ: Where do the suggested searches in the Global Search view come from?#
The suggested searches in Global Search view are made up of existing snippet tags from the user's personal repository. When a suggested search is clicked, users are directed to a list view of snippet names, titles, classifications, and commonly shared related tags and links. This powerful feature streamlines the search experience in Pieces for Developers and allows users to discover relevant code snippets with ease.
FAQ: Why do I see an error for JCEF inside JetBrains IDE when I boot?#
If you also have the JCEF is not supported in this env or failed to initialize error, here is how you can fix it:
- Go to Help -> Find action
- Search and select "Choose Boot Java Runtime for the IDE"
- In that popup, select a JetBrains runtime that has JCEF
- Then restart the IDE and the error is gone.
Read more on the JCEF Errors and JCEF - Java Chromium Embedded Framework