How to generate javadoc comments in Android Studio

前端 未结 16 2301
野的像风
野的像风 2020-12-04 10:01

Can I use shortcut keys in Android studio to generate javadoc comments?

If not, what is the easiest way to generate javadoc comments?

16条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 10:18

    Here we can some something like this. And instead of using any shortcut we can write "default" comments at class/ package /project level. And modify as per requirement

       *** Install JavaDoc Plugin ***
    
    
    
         1.Press shift twice and  Go to Plugins.
         2. search for JavaDocs plugin
         3. Install it. 
         4. Restart Android Studio.
         5. Now, rightclick on Java file/package and goto 
            JavaDocs >> create javadocs for all elements
            It will  generate all default comments.
    

    Advantage is that, you can create comment block for all the methods at a time.

提交回复
热议问题