Skip to content

DocGPT is an IntelliJ plugin that generates documentation for Java, Kotlin, and Dart code using OpenAI and Google Gemini. Easily switch between providers, configure API keys, and generate doc comments with Alt + Enter. Currently, it only supports function doc comments and is still under development. Feedback and contributions are welcome.

Notifications You must be signed in to change notification settings

LeonManolo/DocGPT

Repository files navigation

DocGPT Plugin

DocGPT Logo

DocGPT is an IntelliJ plugin that harnesses the power of the LLMs to generate documentation for your code. Currently, it supports Java, Kotlin, and Dart.

Features

  • Automatically generate documentation comments for functions.
  • Supports Java, Kotlin, and Dart languages.
  • Easy integration with IntelliJ IDEA.
  • Switch between Google Gemini and OpenAI for generating documentation.

Installation

  1. Download and install the plugin from the JetBrains Marketplace.
  2. Navigate to Settings > Tools > DocGPT to add your API key.

Usage

  1. Open a file in Java, Kotlin, or Dart.
  2. Select the function name with the cursor.
  3. Press Alt + Enter.
  4. Choose Generate doc comment from the menu.

Settings

You can now switch between Google Gemini and OpenAI as the provider for generating documentation.

  1. Navigate to Settings > Tools > DocGPT.
  2. Use the dropdown menu to select either Google Gemini or OpenAI.
  3. Enter the respective API key, model and the maximum amount of tokens for the selected provider.
  4. Save your settings.

Settings

Screenshots

Generated a Doc Comment

Generating Doc Comment

Settings

Settings

Important Notes

  • Currently, the plugin only generates doc comments for functions.
  • The plugin is still under development and has not been extensively tested yet.
  • I welcome feedback and suggestions to improve the functionality and usability of this plugin.
  • Use at your own risk.

Features planned for the future

  • Supporting more LLMs
  • Setting the function context scope

Contributing

We welcome contributions to enhance the DocGPT plugin. Please open an issue or submit a pull request on the GitHub repository.

Feedback

For feedback, questions, or suggestions, please create an issue on the GitHub repository.

About

DocGPT is an IntelliJ plugin that generates documentation for Java, Kotlin, and Dart code using OpenAI and Google Gemini. Easily switch between providers, configure API keys, and generate doc comments with Alt + Enter. Currently, it only supports function doc comments and is still under development. Feedback and contributions are welcome.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published