rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
579 stars 70 forks source link

Add global template folder #87

Open DedZago opened 1 year ago

DedZago commented 1 year ago

Currently, rubberduck requires users to copy and paste their templates in the .rubberduck/templates folder for each workspace. However, in my case most of the time I have the same templates for every project.

It would be nice to be able to specify a path to a folder which contains templates that can be seen globally in every workspace.

Thank you for your work.

lgrammel commented 1 year ago

Another way to achieve this is to write your own VSCode extension with your templates. You don't even need to share it, just install the vsix file in your installation. Here is an example repository:

https://github.com/rubberduck-ai/rubberduck-react-vscode

(this is surprisingly quick, only takes a few minutes to set up)

DedZago commented 10 months ago

That would be a way, but I hope you can agree that for the average user it might be significantly more contrived than loading custom prompt files from a specified folder.