[go: up one dir, main page]

Skip to content

mnismt/codyplusplus

Repository files navigation

Cody++

Cody++ README

Cody++ is a VSCode extension that adds some missing features for developers who enjoy Cody.

X (formerly Twitter) Follow

Requirements

  • You must have the Cody extension installed in VS Code.

Installation

You can install the Cody++ extension from the Visual Studio Code Marketplace

You can also install the extension from the command line:

code --install-extension mnismt.cody-plus-plus

Features

  • Add Folder to Cody:
    • Recursively adds all files in a folder to Cody.
    • You can configure the maximum number of files allowed before showing a warning message.
    • You can configure the file extensions to exclude from being added to Cody.
  • Add Custom Command:
    • Add, edit, and remove custom commands from the workspace settings.

Usage

  • Add Folder to Cody:
    • Right-click on a folder in the Explorer view.
    • Select Add folder to Cody from the context menu.
    • If the folder contains a large number of files, you will be prompted to confirm before proceeding.
    • Note: The Cody chat panel must be opened for this feature to work.
  • Add Custom Command:
    • Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
    • Type Add New and select Add New.
    • Use the UI to create or edit a custom command.
    • Click Save or Update to save the changes.

Demo

Add a folder

Add Folder

Create a custom command

add-a-command-edited - 01

Extension Settings

This extension contributes the following settings:

  • codyPlusPlus.fileThreshold: The maximum number of files allowed before showing a warning message. Default is 15.
  • codyPlusPlus.excludedFileTypes: List of file extensions to exclude from being added to Cody. Default is [".exe", ".bin"].

To configure this setting in two ways:

  1. Using the Settings UI:

    • Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
    • Type Preferences: Open Settings (UI) and press Enter.
    • In the search bar, type Cody Plus Plus.
    • Adjust the File Threshold setting to your desired value.
  2. Using the settings.json file:

    • Add these lines to your settings.json file:

      "codyPlusPlus.fileThreshold": 15,
      "codyPlusPlus.excludedFileTypes": [".exe", ".bin"]