Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-chat-gptNew to Visual Studio Code? Get it now.
vscode-chat-gpt

vscode-chat-gpt

ikasann-self

|
341,905 installs
| (2) | Free
Extension uses ChatGpt Api to make chat compilations and image generations.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ChatGpt extension for VSCode

This is a chat bot that uses ChatGpt api. After setting your settings(api key, temperature,response number, size ), you can ask what you want or generate images. To learn more please visit offical OpenAI.

Appendix

This chat bot uses VSCode api. Your API KEY will be safely stored in your workspace. with new version v1.1.0 add new three commands to VSCode editor context menu with their keyboard shortcuts below.

  • ChatGpt Add Comments(ctrl+ alt + c, shift + cmd + c). Support all language.
  • ChatGpt Add Documentaions(ctrl + alt + d, shift + cmd + d). Only support javaScript, TypeScript, Java and C#.
  • ChatGpt Refactor(ctrl + alt + r, shift + cmd + r). Only support javaScript, TypeScript, Java and C#.

The result of these commands depent on ChatGpt "text-davinci-003" model.

ChatGpt Models:

  • gpt-3.5-turbo used for chat.
  • text-davinci-003 used for text complations.
  • DALL·E used for image generations.

Chat completions defaults;

  • model : "gpt-3.5-turbo"
  • temperature : 0.7
  • stream: true
  • messages: [{ role: "user", content: prompt }]

Text completions defaults;

  • model : "text-davinci-003"
  • max_tokens: 2048,
  • temperature: 0.0,
  • top_p: 0.1

Image generation defaults;

  • model : "DALL·E"
  • n: 1,
  • size: '1024x1024',

Installation

Your VSCode version number has to be greater than or equal to 1.77.0 version. Install from VSCode Extensions panel or vscode-chat-gpt from VSCode Marketplace

  Go to Settings > Extensions > vscode-chat-gpt

Release Notes

  • v0.0.1 first relese with simple command and chat panel.
  • v0.0.2 Add icon start button on VSCode Activity bar.
  • V0.0.3 bugfix updates
  • V1.0.0 Add Explorer View and show history of last 10 queries.
  • V1.1.0 Add new three commands to VSCode editor context menu. These: ChatGpt Add Comments, ChatGpt Add Documentaions and ChatGpt Refactor.
  • V1.1.1 Add conditions to context menu commands.
  • V1.1.2 Add temperature settings to chat panel and add editor logo.
  • V1.2.0 Add settings panel and image generation tab.

Using Extension

  • Open chat panel.

alt text

  • Set api key.

alt text

  • Say hello!

alt text

  • Wite a simple typescript code that find squareroot of a number.

alt text

  • Click recent query in the history.

alt text

  • New Setting Panel.

alt text

  • New Image Generate Panel.

alt text

  • Add comments. alt text

alt text

  • Add documentations.

alt text

Roadmap

  • Add ChatGpt Edit image model.
  • Add ChatGpt Create image variation model.

🚀 About Me

I'm a full stack developer. I've been dealing with software since 2016. I worked on a lot of projects so far. My strongest skills are C#, .Net Core, MsSql, javaScript, TypeScript and Angular2+. Also, I am working on sample projects of Nodejs, MongoDb etc. like this extension.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft