PhpStorm and advanced php definitions

Using the code hint, PHPStorm can show me quick definitions of functions; can it be customized to show me more detailed examples of using the function?

+4
source share
2 answers

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

This will open a detailed description incl. examples and user comments (read: PHP manual).

+9
source

Using the special OSX key, you may need to call the F1 key by pressing fn + F1 . So, here are two use cases that work for me:

  • Open php.net documentation: fn + shift + F1
  • A quick look at php.net documentation: fn + F1

You may also find it helpful that you can enable Quick documentation on hover. Open File > Preferences , go to the Editor section, and at the bottom uncheck the Show fast document when moving the mouse box.

0
source

All Articles