This extension automatically runs Doxygen when configured files change and displays the output in VSCode.
Note: 98% of this code including this readme was written by Claude Sonnet 3.5 using Cline 🤖. https://github.com/cline/cline
- Automatically runs Doxygen when monitored files change
- Configurable Doxygen executable path and output directory
- Configurable Doxyfile path
- Configurable file watch patterns
- Shows Doxygen output in a dedicated webview
- Integrated HTML documentation preview panel
- Context menu integration for opening HTML files in preview
- Manual refresh command for on-demand generation
- Visual Studio Code 1.85.0 or higher
- Doxygen installed (can be local to the project or system-wide)
This extension contributes the following settings:
DoxyRegen.doxygenPath
: Path to the Doxygen executableDoxyRegen.doxyfilePath
: Path to the Doxyfile configuration fileDoxyRegen.watchPatterns
: Array of glob patterns for files to watch for changes (defaults to["**/*.cpp", "**/*.h"]
)DoxyRegen.outputDirectory
: Optional output directory for Doxygen documentation (if not set, uses the directory specified in Doxyfile)
- Install the extension
- Configure the settings:
- Set the path to your Doxygen executable (if not using the local copy)
- Set the path to your Doxyfile
- Configure which files to watch (defaults to *.cpp and *.h)
- Optionally set a custom output directory
- The extension will automatically run Doxygen when monitored files change
- Use the available commands:
- "Refresh Doxygen Documentation" to manually trigger documentation generation
- "Open in Doxygen Preview" to view HTML documentation files in the integrated preview panel
- Right-click HTML files to open them in the preview panel
- When a monitored file changes, the extension automatically runs Doxygen using your configuration
- The output is processed in two ways:
- Error messages and warnings are shown in the output channel
- Generated HTML documentation is displayed in an integrated preview panel
- The extension currently assumes the Doxyfile is configured to generate HTML output
- The output viewer is basic and may need to be enhanced based on user feedback
Initial release of DoxyRegen with core functionality:
- Automated file watching system for documentation updates
- Configurable Doxygen and Doxyfile paths with custom output directory support
- Customizable file watch patterns
- Integrated HTML documentation preview panel with context menu integration
- Output channel for logs and error messages
- Local Doxygen executable support for development
- Manual refresh command for on-demand documentation generation
- Add path validation for doxygen executable and doxyfile
- Check if files exist before attempting to run
- Show clear error messages for missing files
- Current setup tries to update setting displays while using doxygen, which is odd.
- Improve error handling for common doxygen issues
- Handle missing dependencies
- Better reporting of syntax errors in doxyfile
- Add workspace path resolution
- Handle relative paths better
- Support multi-root workspaces
- Improve webview panel
- Add reload button
- Better CSS styling for error messages
- Show doxygen warnings inline
- Add status bar integration
- Show documentation generation progress
- Quick access to output panel
- Incremental Updates without losing references
- Doxygen itself doesn't have an incremental system, closest is Tagging
- Experiment with using tagging to keep doxygen partially updated with cross-page references