Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vscode commands to save / recall Github copilot chat prompts #237017

Open
migliori opened this issue Dec 27, 2024 · 0 comments
Open

Add vscode commands to save / recall Github copilot chat prompts #237017

migliori opened this issue Dec 27, 2024 · 0 comments
Assignees

Comments

@migliori
Copy link

Organizing, saving and recalling Github copilot chat prompts that we often use

I'm looking for a convenient way to organize, save and recall custom Github copilot chat prompts.

This would be in my opnion a very useful feature for many people. We would be able to organize our prompts into categories, by programming language or in many other ways.

I currently didn't find any better way than storing them into a file and add it to my favorites, which is not an ideal solution.

So I started to write an extension but I got stucked: I tried different workarounds but found no way to interact with the chat input box.

My request would be to implement vscode commands like for instance:

# get the content of the chat input box
vscode.commands.executeCommand('github.copilot.chat.getInput');

# set the content of the chat input box
vscode.commands.executeCommand('github.copilot.chat.setInput');

# get the content of the latest prompt
vscode.commands.executeCommand('github.copilot.chat.getLatestPrompt');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants