A powerful extension to generate, preview, and export Javadoc comments for your Java projects in Visual Studio Code.
✨ New & Improved in v1.8.0
- Javadoc Preview Panel: Live Markdown/HTML preview of Javadoc comments in the Explorer sidebar, with Shiki-powered syntax highlighting and dynamic theme support.
🚀 Features
Javadoc Generation
- Generate for Workspace: Add Javadoc comments to all classes in your workspace. (Manual save required after generation.)
- Generate for Open File: Quickly add Javadoc comments to the currently open Java file.
- Generate for Selected Methods: Choose specific methods to document via a QuickPick menu.
- Context Menu Integration: Right-click on a Java class or file to generate Javadoc comments instantly.
Export Javadoc
- Export HTML Javadoc: Export your project's Javadoc as HTML using the
Export Javadoc
command. Multi-root workspaces supported.
- Customizable: Configure source/target folders, visibility, and shell options via settings.
Live Preview
- Explorer Sidebar Panel: See a live, syntax-highlighted preview of your Javadoc as you edit.
- Theme-Aware: Preview always matches your VS Code color theme, including dynamic switching.
🛠️ Usage
Commands
Javadoc Tools: Generate Javadoc Comments for Workspace
Javadoc Tools: Generate Javadoc Comments for Open File
Javadoc Tools: Generate Comments for Select Methods
Javadoc Tools: Export Javadoc
Javadoc Tools: Show Javadoc Preview
Access these via the Command Palette (Cmd+Shift+P
/Ctrl+Shift+P
) or right-click context menus.
Settings
javadoc-tools.generateJavadoc.workspaceSourceFolder
: Default source folder (default: src
)
javadoc-tools.generateJavadoc.targetFolder
: Output folder for exported Javadoc (default: ${WorkspaceRoot}/javadoc
)
javadoc-tools.generateJavadoc.runMode
: Javadoc visibility (-public
, -protected
, etc.)
javadoc-tools.generateJavadoc.isUsingPwsh
: Set to true
if using PowerShell
📸 Screenshots
Javadoc Preview in Explorer Sidebar

Javadoc Preview in Panel

Export Javadoc for Workspace

Generate Comments for Select Methods

Generate Javadoc from Context Menu

Generate Comments for Open File/Workspace

⚠️ Notes & Warnings
- Workspace-wide Javadoc generation can be slow on large projects. You will be prompted with a full warning before proceeding.
- Generated comments are not auto-saved. Review and save your files after generation.
🐞 Issues & Feedback
For bugs, feature requests, or feedback, please open an issue on GitHub.
📦 Requirements
📜 Changelog
After each update, the changelog will open automatically in a dedicated tab. You can also view it here.
📝 Most Recent Release Notes
V1.8.1
V1.8.0
For complete version history, see the changelog.