Skip to content

Automatically generate DocString Comments in VS Code for Functions and Classes using the Open AI API.

License

Notifications You must be signed in to change notification settings

arunk140/vs-code-autocomment

Repository files navigation

VS Code Extension - DocString Comment Generator

Powered by Open AI

Automatically generate DocString Comments for Functions and Classes using the Open AI API.

Features

Simply Highlight and Right Click on a Function (in PHP, Python, Java, TypeScript or JavaScript) and Select Generate DocString from Selection

Python Demo

Requirements

Extension Settings

This extension contributes the following settings:

  • vs-code-autocomment.openAI.key: Open AI API Key
  • vs-code-autocomment.openAI.temperature: Temperature (default: 0.9)
  • vs-code-autocomment.general.appendPredefinedExamples: Append predefined examples (default: true)
  • vs-code-autocomment.general.disableSSLVerification: Disable SSL Verification (default: false)
  • vs-code-autocomment.openAI.engine: Engine (default: 'davinci-codex')

Release Notes

1.0.0

Initial release - Support for PHP, Python, Java, JavaScript and TypeScript

1.0.3

Better Error Logging using VS Code Logging Channels

1.0.4

Added Toggle in Extension Settings to Disable SSL Verification (SSL Verification is enabled by Default) (Temporary Fix for #1)