@returns for JSDoc
VS Code automatically inserts @returns
when generating JSDoc comments. This works in both JavaScript and TypeScript files.
@returns
is only added if the function contains a return statement. You can easily disable it with the typescript.suggest.jsdoc.generateReturns
and javascript.suggest.jsdoc.generateReturns
settings.