Pieces for VS Code Extension Commands
Below is a table containing every command that is available to use in the Pieces for VS Code Extension.
Shortcut Table
There are a number of actions related to the Pieces Copilot and Material Management ecosystem that are accessible with shortcuts.
Command | macOS | Windows/Linux |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
Command Table
You can easily access these commands through the Command Palette using the shortcuts—⌘+shift+p
(macOS) and ctrl+shift+p
(Windows/Linux).
Simply type Pieces:
followed by the desired command to filter and locate it in the list.
Pieces Copilot: Focus on Pieces Copilot View | Launches the Pieces Copilot in the side panel, providing contextual insights and assistance for the currently open code. |
---|---|
Pieces Explorer: Focus on About View | Opens the Pieces Explorer window, showing information about the Pieces for VS Code Extension, the Pieces Community, and Support resources. |
Pieces Explorer: Focus on Connect View | Opens the Pieces Explorer window, showing the status of your Pieces account if it is connected to the Pieces Cloud. |
Pieces Explorer: Focus on Explored Materials View | Displays materials (saved code snippets) you selected to explore in the VS Code editor earlier. |
Pieces Explorer: Focus on Related Materials to Current Selection View | Displays materials (saved code snippets) that are related to a current selection. |
Pieces Explorer: Focus on Suggested Materials View | Opens the Pieces Explorer and highlights the suggested materials based on the current selection. |
Pieces: Add Active File to Copilot Context | Adds the currently active file in your editor as a contextual reference for Pieces Copilot. |
Pieces: Ask Copilot About Active File | Allows you to ask the Pieces Copilot about the active file open in the VS Code Editor. |
Pieces: Ask Copilot About Selection | Opens up a prompt for you to ask the Pieces Copilot a specific question about a selection. |
Pieces: Ask Copilot About Workspace | Ask the Pieces Copilot for insights about your entire workspace, including saved files and snippets. |
Pieces: Clear all Explored Materials | Removes all explored materials from the list. A confirmation prompt ensures accidental deletion is avoided. |
Pieces: Clear Filters | Clears all applied filters to reset and start fresh. |
Pieces: Comment Selection with Copilot | Allows the Pieces Copilot to automatically generate comments for your selected code snippet. |
Pieces: Explain Selection with Copilot | Generates a detailed explanation for the highlighted code selection using the Pieces Copilot. |
Pieces: Explore Selection | Analyze selected code snippets to receive useful metadata like an overview, tags, related links, and language classification. |
Pieces: Filter Snippets | A feature that lets you enter comma-separated tags to filter snippets you want to use in your codebase. |
Pieces: Find Related Materials to Selection | Locate saved materials related to the current selection in your code editor. |
Pieces: Import User Snippets to Pieces | Import external user snippets into Pieces to integrate them into your workflow seamlessly. |
Pieces: Launch Pieces OS | Opens the Pieces OS desktop application. Note that Pieces OS must be running to utilize all VS Code extension features. |
Pieces: Modify Selection with Copilot | Refactor or enhance selected code by describing your intended modification. Pieces Copilot will implement the changes. |
Pieces: Open Copilot | Opens the Pieces Copilot on the left-hand side of the VS Code IDE. |
Pieces: Disconnect from Pieces Cloud | Disconnect from your Pieces Cloud account while keeping local functionality intact. |
Pieces: Connect to Pieces Cloud | Connect to the Pieces Cloud and sync VS Code with Pieces Cloud. |
Pieces: Sign into Pieces | Sign into your Pieces Cloud account and sync local databases. |
Pieces: Refresh Snippets | Refresh your saved code snippets in the Pieces. |
Pieces: Save Active File to Pieces | Save the active code file in the VS Code editor to Pieces. |
Pieces: Save Current Selection to Pieces | Save a selected code snippet to Pieces. |
Pieces: Search Pieces | Launches the search bar where you can view and search for conversations, saved snippets, projects, and other interactions you have with the Pieces OS. |
Pieces: Signout of Pieces | Log out of your Pieces account entirely, disabling both local and cloud-connected features. |
View: Show Pieces Copilot | Opens the Pieces Copilot by the side of the VS Code editor. |
View: Show Pieces Explorer | Opens the Pieces Explorer window. |