Documentation Comments
![renderedCommentShowAsCode.png renderedCommentShowAsCode.png](https://resources.jetbrains.com/help/img/space/renderedCommentShowAsCode.png)
![renderedCommentShowAsMarkdown.png renderedCommentShowAsMarkdown.png](https://resources.jetbrains.com/help/img/space/renderedCommentShowAsMarkdown.png)
note
Documentation comments in JavaScript, TypeScript, Java and Kotlin files are embedded inside
/** ... */
, whereas Rust uses///
to denote doc comments.
Thanks for your feedback!
Documentation comments are used in some files to annotate source code and then produce documentation in accessible formats (e.g. HTML, RTF) using special doc-generating tools.
Space can recognize and render documentation comments embedded in the source code. Rendered comments are easier to read as they don't overload your code with extra tags. They will appear in your Space code viewer as formatted text blocks. Markdown is supported, and if the doc comments contain links, you can click them to go directly to the referenced web pages.
You can toggle the view to show a doc comment as plain code or go back to the rendered view. To display the doc comment as plain code, click <>:
To go back to the rendered view, click ... and choose Show as Markdown:
Rendering works for JavaScript, TypeScript, Java, Kotlin, Rust, provided that documentation comments adhere to the standard syntax of the corresponding language.
note
Documentation comments in JavaScript, TypeScript, Java and Kotlin files are embedded inside
/** ... */
, whereas Rust uses///
to denote doc comments.
Thanks for your feedback!
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.