VS ChatGPT is a plugin for Visual Studio Code that integrates the powerful ChatGPT language model into the popular code editor. With VS-ChatGPT, developers can leverage the capabilities of ChatGPT to generate snippets, suggest completions for open-ended questions, and even write entire functions or modules.
Run the command ChatGPT: Text completions
to run OpenAI GPT-3
Ask OpenAI to explain a regular expression by selecting the code and running the command "ChatGPT: Explain regular expression."
Ask OpenAI to comment on the selected code by running the command "ChatGPT: Add comments."
Ask OpenAI to explain the selected code by running the command "ChatGPT: Explain code snippet."
Ask OpenAI to generate unit tests for the selected code by running the command "ChatGPT: Generate unit tests."
Ask OpenAI to generate JsDoc for the selected code by running the command "ChatGPT: Generate JSDoc".
To use VS ChatGPT you must have an OpenAI account and have generated an API Secret Key.
This extension contributes the following settings:
vs-chatgpt.apikey
: Your OpenAI secret API key.vs-chatgpt.model
: OpenAI GPT-3 model (Read more about models).vs-chatgpt.max_tokens
: The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 4000) (Read more about tokens).
Default shortcuts:
- Windows:
alt+ctrl+shift+g
- Mac:
alt+cmd+shift+g
- New feature: Generate JSDoc
- Added step-by-step walkthroughs that guide the initial configuration of the plugin.
- New feature: Explain Regular Expression
- New feature: Add comments to code snippet
- New feature: Explain code snippet
- New feature: Generate unit tests
- Request #1: Added shortcusts.
- New feature: Send the selected text to ChatGPT via context menu or command palette.
First release.