I use VS Code and I want the comments that I write on several lines in Typescript language to be as follows (pay attention to the star character)
/**
*@desc any text
* any text
*/
But when I am writing a comment and I press enter, a star is not automatically created for the next line
/**
*@desc any text
any text
*/
So far, I have tested the following extensions on this date, but they did not solve this problem
- Auto Comment Blocks
- Comment Snippets
- Better Comment
- TSDoc Comment
3
Answers
I installed JavaScript Comment Snippet (Visual Studio Code) extension And I did the following steps
And I set the following items in JSON file.
And I restarted Visual Studio Code.
Now in your ts files your need write ///
It works (for me) if you put a space after the star, which is common practice anyway:
Look in the preferences of VS Code and activate JSDOC