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.
- 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.
- Download and install the plugin from the JetBrains Marketplace.
- Navigate to
Settings
>Tools
>DocGPT
to add your API key.
- Open a file in Java, Kotlin, or Dart.
- Select the function name with the cursor.
- Press
Alt + Enter
. - Choose
Generate doc comment
from the menu.
You can now switch between Google Gemini and OpenAI as the provider for generating documentation.
- Navigate to
Settings
>Tools
>DocGPT
. - Use the dropdown menu to select either
Google Gemini
orOpenAI
. - Enter the respective API key, model and the maximum amount of tokens for the selected provider.
- Save your settings.
- 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.
- Supporting more LLMs
- Setting the function context scope
We welcome contributions to enhance the DocGPT plugin. Please open an issue or submit a pull request on the GitHub repository.
For feedback, questions, or suggestions, please create an issue on the GitHub repository.