/docstring
Last updated
Last updated
2025 Qodo. All Rights Reserved.
/docstring
generates or improves docstrings.
Use it to enhance documentation quality and maintainability by creating clear and consistent docstrings for functions, classes and modules.
Open a file: Open a file in your project.
Activate Qodo Gen: Click the Qodo Gen logo in the Extensions bar.
Focus: Select the part of the code you want to get a docstring for. It could be a few lines of code, a method, an entire file, your local changes and more. Check out our Focus documentation to learn more.
Call the Command: Type /docstring
in the chatbox and hit the send key or click the arrow button.
(Optional) Add optional instructions: You can give Qodo Gen any specific guidelines.
Result! Qodo Gen will analyze the selected code and generate a suitable docstring, or suggest improvements to existing documentation.
(Optional) Continue your chat: To give Qodo Gen more instructions, just type a command or ask a question to keep chatting.