1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Automatically create PhpDocs for functions

Discussion in 'Development' started by SalmonDE, Jul 27, 2017.

  1. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Hello reader!

    When writing code I often encounter myself wanting to add these nice "PhpDocs" (Are they called like that?):
    upload_2017-7-27_5-44-40.png

    But I'm a really lazy person and while writing code I never know the exact syntax of them, so I'd like to ask you if you know a way to automatically add the multi line comment and the @return and @param values to my existing or new functions.

    I tried to use the phar file I've downloaded from https://www.phpdoc.org/ together with NetBeans built in feature, but it seems like it doesn't create PhpDocs inside my code, instead it creates a folder with files which I could use for a website (which isn't what I'm looking for).

    Please note that I do not use PhpStorm, but NetBeans because it's free use to use for everyone and that I'm currently not planning to switch.

    I'm thankful for every helping post! :)
     
  2. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    I'm sorry if this sounds like a stupid question, but until now I'm very unfamiliar with that and I'd like to develop the habit of including these in my code, so please feel free to explain me even more about this topic.

    I also didn't want to ask somewhere else because I feel the most comfortable on the pmmp forums.
     
  3. basprohop

    basprohop Silverfish

    Messages:
    17
    jasonwynn10, SOFe and SalmonDE like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.