Pieces for JetBrains Plugin



The Pieces for JetBrains Plugin enhances your development experience by seamlessly integrating the best features from the Pieces suite directly into JetBrains IDEs, making your favorite tools readily accessible within your workspace.

It provides developers with powerful tools for managing code snippets, debugging, and refactoring within their familiar development environment.

  • Pieces Copilot: Users can start generative AI conversations and add files and folders as context to get the solutions they need—including out-of-IDE context with the optional Long-Term Memory Engine (LTME).

  • AI Quick Actions: Fully integrated and Pieces-powered AI Quick Actions tools are built right into your code to access Pieces Copilot explanation and documentation features even more easily.

  • Snippet Management: Save, search, insert, and share previously saved code snippets.

Getting Started
Getting Started

Follow these instructions to download and install the Pieces for JetBrains plugin.

Support
Support

Explore troubleshooting options, navigate to our support page, or directly book a call with our engineers.

All media (e.g., GIFs, screenshots) in this documentation were captured in PyCharm CE.

The Pieces for JetBrains Plugin verifies against the JetBrains IntelliJ Ultimate IDE, but works across the entire JetBrains suite of IDEs.

The minimum version required for the Pieces for JetBrains Plugin to work in your JetBrains IDE is 2023.1.

If you’re not quite sure what version your JetBrains plugin is, you can click here to find out how to check it.

This plugin is currently available for use in any JetBrains IDE, such as:



The Pieces for JetBrains plugin provides developers with two pillars of functionality:

  1. Pieces Co-Pilot: Offers AI-assisted features like starting contextualized generative AI conversations, adding code comments, and troubleshooting code.

  1. Snippet Management: Enables you to save, edit, search, and share useful code snippets to boost your workflow productivity and streamline collaboration with others.

Using the Pieces Copilot

You can perform several actions with the Pieces Copilot inside of your JetBrains IDE, like starting a conversation directly inside the editor with your LLM of choice about a specific code snippet, fragment, folder, or terminal output.

This is the backbone of the Pieces Copilot experience—the Ask Copilot feature.

Pieces for Developers has recently rolled out its new AI Quick Actions feature—similar to VS Code’s Codelens—which allows for select quick actions powered by Pieces Copilot, namely Pieces: Explain and Pieces: Comment.

The Quick Action tools—Pieces: Explain and Pieces: Comment—can be found above the function nearest to your cursor.

Using either of these AI Quick Actions triggers the Pieces Copilot conversation window, where you can find the output from the LLM of your choice.

These AI Quick Action tools live above certain pieces of code, like functions, so that you always have easy access to them.

Managing Code Snippets

When you save code to your personal repository, Pieces automatically enriches the snippet with AI-generated tags, titles, related authors and links, and a description.

You can save code snippets by right-clicking a selection of code and selecting the Save to Pieces option from the pop-up window, or you can right-click and hover over the Pieces item to reveal several other snippet-related functionalities:

Searching for Snippets

You can easily find saved snippets in your JetBrains IDE by double-tapping the shift key and then selecting the Pieces window.

Simply enter a query, and any snippet you’ve saved that matches the query will be returned in the drop-down list.

Once you’ve located the snippet you want, pressing enter or clicking the snippet title will open it inside your JetBrains IDE.

Download the Plugin

Follow the installation instructions to get started with the Pieces for JetBrains Plugin.

Updated on