A
A
Alexander2021-10-08 19:04:55
JavaScript
Alexander, 2021-10-08 19:04:55

How to make JSDoc auto-annotations work in VSCode?

Hello. Can you please tell me how to make JSDoc auto-annotations work in VSCode? In general, I write code, I want to make, for example, documentation of a function, I enter /** Enter , a template of the form should appear:

/**
*
* @param{}
* @param{}
*/
function blaBla() {
// Какой-то код...
};

Something like that. If I write the code in the *.js file, then it works, but if I write the JS code in the *.html body in the tags
<script>
    function blaBla() {
    // Какой-то код...
    };
</script>
, then it doesn't work. Can this be enabled somehow?
I know that in WEBStorm or PHPStorm this feature works regardless of where you write the code, in the HTML body or separately in the JS file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander risok, 2021-10-08
@SelfCrafter

Write in js and include it as a script
"Sorry! 'Document This' currently only supports JavaScript and TypeScript."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question