I think it looks messy and harder to read when JSDoc is mixed into regular (JS) code. Is it possible to add the documentation to an external file & reference the functions there (and have Visual Studio's "preview" of parameter types & return values work properly by using the JSDoc)?
What do I have to do to make this (or something similar) work?
I'm thinking something like this (3 files).
myfile.html
...
<body>
...
<script src="./JSDock.js"></script>
<script src="./script.js"></script>
</body>
JSDoc.js
/**
* @function test
* @param {string} myText
* @return int
* What more should be here?
*/
script.js
function test(myText) {
return 5;
}