Logo and icon for Codeulator, a ChatGPT plugin with description: Get read/write access to files in your Visual Studio and VS Code projects.. Find out more on Plugin Surf, the best plugin database.

Codeulator

Get read/write access to files in your Visual Studio and VS Code projects.

Codeulator is a plugin that allows you to collaborate with AI directly inside your favorite code editor. With Codeulator, you can easily add code to an existing or new file in your IDE by providing a Live Share URL. Simply delete obsolete lines before inserting new code and make sure each 'newCode' line has proper indentation. Codeulator helps you avoid errors and ensures that your code structure remains intact. It also provides alerts for potential issues in the code. Collaborate seamlessly with AI and enhance your coding experience with Codeulator!

Learn how to use Codeulator effectively! Here are a few example prompts, tips, and the documentation of available commands.

Example prompts

  1. Prompt 1: "Explore a directory tree and find all the files in a specific folder."

  2. Prompt 2: "Read the contents of a file and display them."

  3. Prompt 3: "Create a draft with changes to a file without applying them."

  4. Prompt 4: "Apply a drafted set of changes to a file."

  5. Prompt 5: "Get diagnostic messages for a file."

Features and commands

Feature/CommandDescription
readDirectoryThis command allows you to explore a directory tree and find files within a specific folder. You need to provide the Live Share URL, the absolute path to the target file or directory, and a description of the analysis goal.
readFileThis command allows you to read the contents of a file and display them. You need to provide the Live Share URL, the absolute path to the target file, the line number to start reading at (if needed), the line number to stop reading at (if needed), and a description of the analysis goal.
createDraftThis command prepares a set of file changes, without applying them yet. It returns a diff for validation purposes. If the diff contains errors, the client should fix them and try again. You need to provide the Live Share URL, the absolute path of the file to be edited, the deletion mode (currently only 'pair' is supported), a sequence of edit operations to perform on the file, a list of previous draft IDs that this draft depends on (if applicable), and a boolean value to indicate if an empty file should be created.
applyDraftThis command applies a drafted set of changes to the original file. You need to provide the Live Share URL, the absolute path to the file, the draft ID, and a boolean value to indicate if the draft should be applied even if it has warnings.
getDiagnosticsThis command retrieves diagnostic messages for a file. You need to provide the Live Share URL and the absolute path to the file.

Configuration

User authenticationOAuth2
API documentation

For AI

NameCodeulator
DescriptionWhen providing a code block to the user, if they want you to add the code to an existing or new file in their IDE, use this plugin. They may either (a) provide a Live Share URL with the domain vscode.dev or prod.liveshare.vsengsaas.visualstudio.com; or (b) use the native Codeulator integration, if available. Don't assume knowledge about setting up native integrations, use productInfo. Usage instructions: Delete obsolete lines before inserting new code. Every 'newCode' line must have explicit indentation. 'indentSpaces' or 'indentTabs' are additive to each line in 'newCode' and should match the code structure. Avoid adding multiple lines without proper indentation. If a file name is mentioned, assume it contains relevant code seen by the user. When a path is absent, the file could be anywhere. Don't apply drafts with visible errors. API "WARNING:" alerts need scrutiny. Avoid presumptions about unread code. Utilize knowledge of other projects but avoid speculation. Refrain from describing code that the user can see. When code is replaced with ellipses, read specific lines to see the full code. When looking for specific code or functionality, utilize the search capability. To ensure correctness, edits are only permitted if the surrounding code was previously read using this plugin and has not changed since. Params for delete operations: deleteStartText and deleteEndText: Identifies the first and last lines to be deleted, respectively. Matches any part of the line. Params for insert and replace operations: anchorText: String to locate in the file. The next match sets the position for the operation. newCode: Text to add. indentSpaces: The system will indent new lines by this many spaces. This reduces the need for manual indentation. indentTabs: Alternative to indentSpaces for projects that use tabs for indentation. Additional params for insert operations only: relativePosition: Insert mode, relative to anchorText. 'linesAfter' = directly after anchor line, 'linesBefore' = directly before anchor line, 'after' = after anchor text on same line, 'before' = before anchor text on same line.

Updates

First added14 July 2023

Admin

Codeulator Get read/write access to files in your Visual Studio and VS Code projects. | plugin surf

Similar plugins