Configuration

Refer to the guide below to effectively configure the Pieces for Visual Studio Extension to suit your workflow and personal preferences.


Supported LLMs

We continuously update and optimize our plugins and extensions to ensure compatibility with the latest LLMs.

The Pieces for Visual Studio Extension currently supports 13 different cloud models and 41 different local models:


Model Name

Context Window

Description

GPT-4o Mini

128k tokens

Compact version of GPT-4o with efficiency.

GPT-4o

128k tokens

High-output GPT-4 variant for extended tasks.

GPT-4 Turbo

128k tokens

Cost-efficient GPT-4 with large capacity.

GPT-4

8k tokens

Advanced GPT-4 for high-quality responses.

GPT-3.5

4k tokens

General-purpose versatile language model.

Claude 3.5 Sonnet

40k tokens

Upgraded for improved reasoning.

Claude 3 Sonnet

40k tokens

Designed for eloquent writing.

Claude 3 Opus

40k tokens

High-capacity for detailed analysis.

Claude 3 Haiku

40k tokens

Creative for precision tasks.

Gemini Pro Chat

4k tokens

General-purpose language model.

Gemini 2 Flash

4k tokens

Experimental, optimized for response time.

Gemini 1.5 Pro

128k tokens

Advanced version with extended context.

Gemini 1.5 Flash

256k tokens

Lightweight with extended context.


Read the documentation to learn how to switch your Pieces Copilot Runtime (LLM) used by the Pieces for Visual Studio Extension directly within your IDE.

Opening Pieces Settings

To open the Pieces Settings in the Pieces for Visual Studio Extension, follow these steps:

1

Open the Command Palette

Press ctrl+shift+p to open the Command Palette in Visual Studio.

2

Search for User Preferences

Type Pieces > Pieces for Visual Studio > User Preferences in the search bar.

3

Open and Adjust Settings

Select the command to access the Pieces settings and make adjustments as needed.

Overriding Commands in VS Code

To modify the keyboard shortcuts for Pieces functionality in Visual Studio, such as saving a snippet or launching the Copilot, follow these steps:

1

Open the Options Menu

Navigate to Tools > Options from the top toolbar in Visual Studio

2

Access Keyboard Settings

In the Options window, expand the Environment section and select Keyboard

3

Search for a Pieces Command

Use the search bar to find the Pieces command you want to modify, such as Pieces.SaveToPieces

4

Assign a New Shortcut

Select the command from the list and enter your preferred shortcut in the Press shortcut keys field

5

Save Your Shortcut

Ensure your new shortcut doesn’t conflict with existing Visual Studio commands, then click Assign to save your changes

This process enables you to customize keyboard shortcuts to fit your workflow seamlessly.

Settings Overview

Analytics

Manage how Pieces collects and processes data:

  • Analytics Privacy: Set your privacy level (e.g., OPEN or ANONYMOUS).

  • Anonymous Analytics: Enable or disable the collection of anonymous analytics.

  • Exception Analytics: Toggle tracking of application exceptions.

  • Usage Analytics: Track general usage patterns to improve functionality.

CodeLens

Customize the behavior of CodeLens features in Visual Studio:

  • Enabled: Turn CodeLens integration on or off.

  • Refresh Delay: Adjust the refresh rate (in milliseconds) for CodeLens updates.

Editing

Modify editor behavior related to snippets:

  • Close Snippet Editor On Save: Automatically close the snippet editor after saving changes.

Enrichment

Set the level of metadata added to saved snippets:

  • Enrichment Value: Choose the level of snippet enrichment (e.g., Low, Medium, High).

Miscellaneous

Manage miscellaneous settings for Pieces functionality:

  • DetectedPiecesOSPort: Displays the detected port where PiecesOS is running.

  • PiecesOSPort: Shows the port used for PiecesOS communication.

PiecesOS

Control integration and communication with the PiecesOS application:

  • Base API Path: Specifies the API path (default: http://localhost:39300).

  • Base API Port: Displays the port PiecesOS is running on (default: 39300).

  • Capabilities: Selects the type of models used (e.g., Cloud, Local, Blended).

  • Launch Pieces OS on Interaction: Define whether PiecesOS should launch upon user interaction.

  • Launch PiecesOS on Startup: Enable or disable automatic startup of PiecesOS.

Searching

Adjust search-related functionality:

  • Search Action: Set the default action when searching (e.g., Overview).

  • Search By: Define the search criteria (e.g., All).

  • Search Display: Configure how search results are displayed (e.g., NameTagsAndSnippet).

Sharing

Manage sharing settings for snippets:

  • Clipboard Links: Enable or disable the creation of clipboard links for shared snippets.

Terminal

Set terminal-specific preferences:

  • Use Integrated Terminal: Toggle the use of the integrated terminal in Visual Studio.

For additional support resources, check out our troubleshooting guide.


Updated on