Automate repetitive tasks in copilot #159875
Replies: 3 comments
-
|
Thank you for your question about automating repetitive prompts in GitHub Copilot. There are several effective methods to streamline your workflow when using the same prompts repeatedly in VS Code. The key options I've found for automating repetitive prompts in Copilot include:
1. Create Custom VS Code SnippetsVS Code snippets are perfect for automating repetitive Copilot prompts:
{
"Common Copilot Prompt": {
"prefix": "cp-prompt1",
"body": [
"// @copilot Your repetitive prompt here"
],
"description": "Insert a common Copilot prompt"
}
}Then type 2. Assign Keyboard Shortcuts to SnippetsFor even faster access, you can assign keyboard shortcuts to insert specific Copilot prompts:
{
"key": "ctrl+alt+p",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "// @copilot Your repetitive prompt here"
},
"when": "editorTextFocus"
}3. Use Slash Commands in Copilot ChatIf you're using Copilot Chat, you can leverage slash commands:
4. Create Keyboard Shortcuts for Copilot ActionsYou can set up keyboard shortcuts for specific Copilot commands:
5. Save Chat SessionsFor complex prompts that you use repeatedly:
Would you like me to elaborate on any specific automation method that seems most relevant to your workflow? Best regards, |
Beta Was this translation helpful? Give feedback.
-
|
I ran into the same issue a few weeks back. If it's helpful, I built a copilot extension called MonkeyDo to automate redundant tasks. The extension lets you record yourself doing a task, then you can tell copilot to perform the same process, but for a different task. Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
|
check https://github.com/github/awesome-copilot/tree/main/plugins/automate-this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
General
Body
I have some repetitive prompts which I have to run every time. Is there a way to automate this thing in visual studio code for github copilot?
Something like workflows in windsurf?
Beta Was this translation helpful? Give feedback.
All reactions