Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/djiit/vscode-custom-prompts
- Owner: Djiit
- License: mit
- Created: 2024-10-19T12:22:51.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T12:44:30.000Z (2 months ago)
- Last Synced: 2024-10-27T04:04:11.375Z (2 months ago)
- Topics: copilot-chat, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=djiit.vscode-custom-prompts
- Size: 201 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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