GPT extension for VSCode. Generic interface and queries to use with Chat-GPT. Main feature is documenting selected code. With more functionalities expected to land in this project.
This extension has been tested mostly on Typescript code. Documentation quality with other languages may vary.
Running this extension
Add your own ChatGPT API Key and an optional hint to help ChatGPT generate the comment. Go to VSCode preferences:
Then fill the API key that you can get from https://beta.openai.com/account/api-keys
You can now also change the host instead of using OpenAI api. In the case you have a private instance of ChatGPT.
How to use
Select your Typescript code in VScode then right click and select 'GPT Toolbox - Document code'
After a few seconds, the documentation comment is there.