ChatGpt Context Companion is a VS Code extension that utilizes Open AI technology to enhance your development experience. This extension allows you to customize prompts from the context menu and get AI-generated responses, making your coding faster, smarter and more efficient.
You might need an Open AI key from here to use this extension.
Customizable Prompts: Create and use your own prompts based on your unique coding style or requirements.
Quick Menu Integration: Easily access the ChatGpt Context Companion from Quick menu to get help with your coding (Ctrl + m in windows / Cmd + m in Mac ).
OpenAi Generated Answers: Get instant, intelligent responses from the OpenAI to help you code more effectively.
Configurable Settings: Make the extension work for you by customizing and configuring it to suit your needs. You can set API Key , Choose Model through settings.
Open Extensions sidebar panel in Visual Studio Code. View → Extensions.
Search for ChatGpt Context Companion - Vscode.
Click Install to install it.
Click Reload to reload the your editor.
Code away with the help of your new ChatGpt Context Companion!
How to Use
Type Ctrl M in windows or Cmd M in mac at end of line or selection to show up the prompts and choose the prompt you want to use and press "Enter", and the AI will generate the response based on your command and display in a side panel.
Type Ctrl + Shift + P in windows / Cmd + Shift + P in Mac for settings
Type "ChatGpt Context Companion".
Choose "Set API Key" to set your API Key.
Choose "Choose Model" to set your Model (Currently we support GPT 3.5 /GPT 4 / GPT 4 (32k)).
Choose "Set Max Tokens " to set the maximum tokens to use for the completion (default is 300).
Choose "Add Prompt" to add a prompt.
Prompt can be a string or a json.
use %s within prompt to get selected text within prompt.
Some Sample Prompts
What is the output of %s ?
"label": "Explain %s",
"value": "Explain the following code to junior developer : %s "