Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/djiit/vscode-custom-prompts

VS Code Extension: Custom Prompts for Github Copilot Chat
https://github.com/djiit/vscode-custom-prompts

copilot-chat vscode-extension

Last synced: 2 months ago
JSON representation

VS Code Extension: Custom Prompts for Github Copilot Chat

Awesome Lists containing this project

README

        

# Custom Prompts for Github Copilot Chat

Share custom prompts for Github Copilot Chat with your team.

## Usage

Use `@customPrompts` to invoke the assistant, then select the desired command.

### Configuration

Add your custom prompts in `.vscode/settings.json` as follow:

```jsonc
{
"customPrompts": {
"prompts": [
{
"command": "prefixwithlegacy",
"content": "Rename functions with the 'legacy_' prefix.",
"name": "Refactor: prefix with 'legacy_'", // optional
"description": "Use this to rename functions with the 'legacy_' prefix.", // optional
},
],
},
}
```

Then, in the chat, enter `@customPrompts /load /` to invoke the custom command; e.g. with the example config above: `@customPrompts /load /prefixwithlegacy`

### Available Commands

- `/load`: Use `@customPrompts /load /` to invoke a custom command.

## Credits

Inspirations:

- https://github.com/microsoft/vscode-extension-samples/tree/main/chat-sample
- https://github.com/wolfsilver/friday