Skip to content

A Visual Studio Code extension to support ChatGPT. The extension is pair-programmed with ChatGPT.

License

Notifications You must be signed in to change notification settings

weekitmo/vscode-chatgpt

 
 

Repository files navigation


Ask ChatGPT

ChatGPT conversations in Visual Studio Code

Badge for version for Visual Studio Code extension gencay.vscode-chatgpt

Level up your coding experience

  • 💯 Get help from ChatGPT within vs-code by asking it questions about your code such as help implementing test cases, explaining it etc.
  • 🧪 This extension uses unofficial OpenAI APIs.
  • 🔥 This vs-code extension was implemented with the help of ChatGPT.
  • 🖼️ Icon is generated by dall-e-2.

Features

The extension comes with context menu commands, copy/move suggested code into editor with one-click, conversation window and customization options for OpenAI's ChatGPT prompts.

ChatGPT conversation window in vs-code

Copy or insert the code ChatGPT is suggesting right into your editor.


Ask free-form text questions that will be listed in the conversation window. The conversation is kept in cache until vs-code instance is closed.


Add tests for your code

Right click on a selected block of code, run ChatGPT: Add Tests command for ChatGPT to write tests for you.


Find bugs in your code

Right click on a selected block of code, run ChatGPT: Find bugs command for ChatGPT to analyze and find bugs in your code.


Improve & optimize your code

Right click on a selected block of code, run ChatGPT: Optimize command for ChatGPT to add suggestions to your code to improve.


Explain your code

Right click on a selected block of code, run ChatGPT: Explain command for ChatGPT to explain the selected code.

Setup

Follow the instructions here to get your access token: https://github.com/transitive-bullshit/chatgpt-api#how-it-works

During your first interaction with the extension, you will be asked to enter your access token.

Settings

  • You can configure the commands to use any prompts for the selected code.

Troubleshooting

If the bot isn't responding, try clearing your cache by running the ChatGPT: Clear session command.

It's possible that openai systems may experience issues responding to your queries due to high-traffic from time to time.

Credits

About

A Visual Studio Code extension to support ChatGPT. The extension is pair-programmed with ChatGPT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 43.3%
  • JavaScript 41.4%
  • CSS 15.3%