KDocGen is a powerful IntelliJ IDEA plugin designed to streamline code generation and documentation creation for
Kotlin developers.
With a single shortcut, you can instantly generate structured code, comprehensive documentation, and well-organized test
cases—reducing manual effort and boosting productivity.
Whether you're writing new functions, documenting existing ones, or setting up test cases, KDocGen ensures your codebase
remains clean, well-documented, and maintainable.
By leveraging AI-assisted automation, this plugin helps you focus on writing high-quality logic while handling
repetitive tasks.
✅ Automate documentation – No more writing KDocs manually.
✅ Generate missing code – Quickly create function bodies and method stubs.
✅ Simplify testing – Instantly generate Kotest test files for your functions.
✅ Enhance readability – Insert meaningful comments effortlessly.
✅ Generate QA reports – Gain insights into potential issues and improvements.
✅ Seamless IntelliJ IDEA integration – Works smoothly with a single shortcut.
Stay productive, write better code, and let KDocGen handle the rest! 🚀
- 🔹 Generate function documentation – Insert AI-assisted KDoc for selected functions.
- 🔹 Process code with AI – Modify, enhance, or analyze selected code based on AI instructions.
- 🔹 Generate comments – Add meaningful, AI-generated comments to code.
- 🔹 Generate Kotest tests – Instantly create Kotest test files for selected functions.
- 🔹 Generate QA reports – Analyze functions and produce detailed reports.
- 🔹 Seamless integration – Works effortlessly within IntelliJ IDEA using a single shortcut.
- 🔹 Provider selection – Choose between API providers, including
OpenAI,Groq, and a Custom option.
- Open IntelliJ IDEA.
- Go to Plugins → Marketplace.
- Search for KDocGen.
- Click Install.
- Go to Settings → KDocGen Settings.
- Click Save, and you're ready to go!
Good news! You no longer need an OpenAI account to use KDocGen's AI-powered features.
Simply get a free Groq API key here: Groq Console and start using the plugin instantly!
Alternatively, if you prefer OpenAI, you can still use an OpenAI API Token.
- Navigate to the function.
- Press [
⌘ + N] (on macOS). - Select
✨ Generate KDoc. - The plugin will generate KDoc for the selected function automatically.
- Write a comment describing the AI task (e.g., add a function, check for errors, enhance logic, etc.).
- Select the relevant code.
- Press [
⌘ + N] (on macOS). - Select
✨ Process with AI. - The plugin will modify or enhance the selection based on your request.
- Navigate to the function.
- Press [
⌘ + N] (on macOS). - Select
✨ Generate Kotest File. - The plugin will generate a scratch file with a test using
BehaviorSpec.
- Navigate to the function.
- Press [
⌘ + N] (on macOS). - Select
✨ Generate QA Report. - The plugin will generate a report highlighting potential issues and improvements.
- Select a piece of code (e.g., a function or class).
- Press [
⌘ + N] (on macOS). - Select
✨ Describe Selection. - The plugin will automatically generate a comment.
| Action | Shortcut (macOS) |
|---|---|
| Generate Code & Docs | ⌘ + N |
- 🔹 Full K2 support for AI-powered features.
- 🔹 Improved AI-based documentation generation.
- 🔹 Support for additional languages (e.g., Java).
💡 Enhance your development workflow with automated code & documentation generation!
If you’d like to support the author or have an idea, visit Boosty.