Komento is a Visual Studio Code extension that helps you generate contextual & meaningful JSDoc comments for your functions with just a click! Simplify documentation and keep your codebase well-documented with ease.
- Context Menu Command: The Generate command is available in context menu when you Right-click on a function declaration or inside the function.
- Automatic Detection: Supports various function types like function declarations, arrow functions, method declarations, and more.
- Clean and Accurate Comments: Generate parameter and return type annotations based on your function's signature.
- Place your cursor inside or near a function declaration.
- Right-click and select
Generate JSDoc Comment ✨
from the context menu. Alternatively you can also find this command in command paletteCmd + Shift + P
/Ctrl + Shift + P
. - Watch as a neatly formatted JSDoc comment appears right above your function.
A screenshot of the user right-clicking near a function declaration and seeing the Generate JSDoc Comment ✨
option.
A screenshot of the bottom-right notification showing the current status.
A screenshot of a generated JSDoc comment added above the function.
- Open the Extensions view in VSCode (
Ctrl+Shift+X
orCmd+Shift+X
on Mac). - Search for
Komento
. - Click
Install
. - Enjoy seamless documentation generation!
- Open any JavaScript or TypeScript file.
- Place your cursor inside or near the function you want to document.
- Right-click and select
Generate JSDoc Comment ✨
. - Customize the generated comments if needed.
- Currently supports JavaScript and TypeScript files only.
- Works best with properly formatted and valid code.
The Komento logo is adapted from an icon by Lorc under CC BY 3.0. Huge thanks to them for providing free resources to the community!
We’d love to hear your thoughts, feature requests, or bug reports! Open an issue or start a discussion on GitHub.
Contributions are welcome! Feel free to fork the repository and submit a pull request.
This extension is licensed under the MIT License.
Happy documenting! 🎉