Install Here: https://marketplace.visualstudio.com/items?itemName=PolymerMallard.gpt-template
What is it?
It's a plugin for VSCode that uses ChatGPT to create a variation of a file that already exists.
How does it work?
Select a file in the tree, or open it, and run the Generate using this as template
command. (via Cmd+Shift+P)
Type a description of the new file you want to create that is loosely based off this one.
Press [Enter] and it'll generate a new file; or you can give it a name to save it.
And you end up with a similar file, similar commenting, etc but with a new purpose.
Why would you do this?
It's a more open-ended templating system that allows you to create things like migrations, seeders, services, and more using similar syntax, commenting, and file structure.
It's not practical to create a template or boilerplate for every filetype, so this steps in as a dynamic templating system.
Since it's using GPT, it can even predict what fields in a migration you might want, foreign keys, etc.
Top comments (0)