Reputation: 2253
I'm doing TypeScript development, and recently updated to Visual Studio Code version 1.10.2. One thing advertised in this release is auto generation of JSDoc comments, where just by typing /**
and RETURN in front of a JavaScript or TypeScript function you'll get a JSDoc comment block with customized placeholders for the functions's arguments. Very cool, and very useful.
However, this doesn't work for me. Type the /**
, and I get the closing */
, but nothing else, even after typing that RETURN. Even stranger, I swear that this USED to work for me. It's possible that it was an extension doing this, but the only relevant extension I'd had installed was Document This, and that must be triggered by a hotkey. I tried reinstalling Document This, but to no avail: I still don't get that lovely auto-generation. I've also looked through the settings, but didn't find anything relevant. I've also tried this under OS X 10.10.5, and Windows 10; same result.
Is this functionality working for other people? Any suggestion on how I could enable it, or debug/fix the problem?
Upvotes: 4
Views: 2921
Reputation: 65195
I implemented auto jsdoc completion in VSCode.
If you are seeing an issue with this feature and it is not caused by extensions—i.e. it repos with all extensions disabled—please open a new github issue: https://github.com/Microsoft/vscode/issues/new Include some sample code along with a brief set of repo steps so that someone can investigate what may be going wrong.
Thanks
Upvotes: 3