

# Using Amazon Q Developer for Docstring, JSDoc, and Javadoc completion
<a name="docstring-javadoc"></a>

Amazon Q can help you generate or complete documentation inside your code.

------
#### [ C\$1\$1 ]

![\[An example of the docstring completion feature using C++.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/docstring-completion-c-plus.gif)


------
#### [ Javascript ]

In this example, Amazon Q fills in JSDoc parameters based on existing constants.

![\[An example of JSDoc completion feature.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/javascript_vscode_JSDocCompletion.gif)


------
#### [ C\$1 ]

In this example, Amazon Q fills in JSDoc parameters based on existing constants.

![\[An example of C3 with DocString completion.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/c-sharp-docstring.gif)


------
#### [ Java ]

The following example is adapted from [an example on the Oracle website](https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html).

In the image below, the user has started entering a docstring. Amazon Q has suggested words to add to the docstring.

![\[suggesting a function to complete a docstring\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/jb-docstring-java.png)


The following example is adapted from [an example on the Oracle website](https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html).

In the example below, in Java, the user enters a docstring. Amazon Q suggests a function to process the docstring.

![\[An example of code completion based on a Javadoc.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/cw-c9-javadoc.gif)


------
#### [ Python ]

In this example, Amazon Q recommends a Docstring, based on the surrounding context. 

![\[An example of the Docstring feature.\]](http://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/images/python_sagemakerstudio_commentblock.gif)


------