Custom slash commands for Copilot Chat #74564
Replies: 7 comments 1 reply
-
It is possible but you would have to use the extension for that. There are Tasks but they don't have the access to the editor's context which would mean that they don't have the access to your code so they can't extract it. Custom extension is the solution for your issue. Check the extension API, it shouldn't demand much work to create a feature like you mentioned above, link below: https://code.visualstudio.com/api Good luck Martin. 🍺 🍀 |
Beta Was this translation helpful? Give feedback.
-
Do we have an IDE agnostic solution for this? cause chat is for several IDE's, not only vs |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
@mjisaak Greetings, did you find a solution for this requirement? It would be really useful for me. |
Beta Was this translation helpful? Give feedback.
-
it would be helpful to have this feature. |
Beta Was this translation helpful? Give feedback.
-
I am exited to know if you have found any solution to create custom slash commands. I am trying create custom slash commands on top of github copilot extension that i created. Eagerly waiting for a reply on the solution. |
Beta Was this translation helpful? Give feedback.
-
There aren't any custom slash commands now? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
In VSCode, we have Agents and slash commands to simplify certain operations like /tests for generating tests for the selected code.
Is it possible to define custom commands that are simply an alias for a prompt? Like for example:
/extract - Extract the selected code into a separate function
Beta Was this translation helpful? Give feedback.
All reactions