vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Completing /** should generate Javadoc with params

Open fbricon opened this issue 9 years ago • 17 comments

typing /**+Enter on top of methods/constructors should generate Javadoc with parameters like in Eclipse or typescript support in VS Code: may-28-2017 01-05-06

fbricon avatar May 28 '17 05:05 fbricon

It doesn't work

spiker9 avatar May 16 '18 20:05 spiker9

No it doesn't, since the bug is still open

fbricon avatar May 16 '18 20:05 fbricon

Please use the voting button @spiker9

erihanse avatar May 16 '18 20:05 erihanse

This!

msandim avatar Jun 26 '18 19:06 msandim

This would be the dream, one step closer to get rid of IntelliJ, please make this happen

jagarcia-xumak avatar Jul 09 '18 20:07 jagarcia-xumak

Kudos to @snjeza for making it happen:

aug-21-2018 19-43-00

fbricon avatar Aug 21 '18 23:08 fbricon

@fbricon How do I activate this? I don't get the javadoc comment autocomplete. I have the latest version of Language Support for Java installed.

timobehrens avatar Sep 25 '18 08:09 timobehrens

OK, so I get it for some method signatures, but not for all.

This one is triggered correctly:

private CloudFile getCloudFile(String shareName, String folderPath, String fileName){

And this one isn't:

public boolean downloadFile(String shareName, String folderPath, String fileName, String destinationFolder) {

@snjeza

timobehrens avatar Sep 25 '18 08:09 timobehrens

I guess it's enabled for public methods only, for some reason

fbricon avatar Sep 25 '18 11:09 fbricon

It's actually the other way round: Only private methods trigger it.

timobehrens avatar Sep 25 '18 14:09 timobehrens

mmm it looks like sometimes the completion is too slow to show up. Can you just try and wait for a couple seconds after /** ?

fbricon avatar Sep 25 '18 14:09 fbricon

I have the latest version of this language support installed, and the latest version of vscode; this feature does not work for any functions withing my Spring Boot application, no matter what access modifier is used.

Is anyone else having issues with this feature?

Monkatron95 avatar Jan 10 '19 09:01 Monkatron95

Latest version, not triggered for either public or static version

praenubilus avatar Jan 27 '19 22:01 praenubilus

1.31.1 VSCode and 0.39.0 Language Support for Java. Javadocs will not format parameters. Used to work. Now does not.

chuckb avatar Feb 22 '19 17:02 chuckb

Please open a new ticket with steps to reproduce

fbricon avatar Feb 22 '19 17:02 fbricon

is there a way to trigger it to update the Javadoc comment for added/removed params?

spottedmahn avatar Mar 26 '20 02:03 spottedmahn

is there a way to trigger it to update the Javadoc comment for added/removed params?

Well I dont know if this is feasible as a feature, but currently I remove the entire javadoc comment and regenerate it...(of course,I would have copied the content in between)!!!

deekshithanand avatar Dec 28 '20 18:12 deekshithanand