PhpStorm and expanded php definitions

那年仲夏 提交于 2019-12-07 11:03:59

问题


Using code hinting, PHPStorm can show me quick function definitions; can it be configured to show me more detailed examples of the function's use?


回答1:


You can place the cursor (text-cursor, not mouse-cursor) on any PHP function and press Shift + F1 (Menu: View -> External Documentation).

That will open the detailed description incl. examples and user-comments (read: the PHP manual).




回答2:


With an OSX specific keyboard, you may need to trigger the F1 key by pressing fn + F1. So here are two use cases that work for me:

  1. Open php.net documentation: fn + shift + F1
  2. Quick view php.net documentation: fn + F1

You may also find it useful that you can enable Quick documentation on hover. Open up File > Preferences, navigate to the Editor section, and at the bottom check the box for Show quick doc on mouse move.



来源:https://stackoverflow.com/questions/15959268/phpstorm-and-expanded-php-definitions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!