Question

How do I get Sublime Text to automatically generating Javadoc comments for methods? I tried looking around but amounted to nothing.

Was it helpful?

Solution

You might want to try DocBlockr.

It recognizes method parameters correctly and it lets you conveniently tab through the fields (like you do it when using Sublime snippets). But it is not flawless; it seems to have trouble with functions that return arrays, and it adds an @param block for constructors, too.

I guess it depends on how much automation you want.

(Type /** and press enter to trigger it. The gitHub readme has more details on how to use it)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top