1

In NetBeans we can show detailed infos about declarations if we hold CTRL and hover the mouse over the function name.

enter image description here

How does this work in PhpStorm? I only get few infos on PhpStorm:

Php

I only get more infos if I click on the function link in the yellow box which you can see in the screenshot.

enter image description here

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Black
  • 18,150
  • 39
  • 158
  • 271

1 Answers1

2

In general -- just place caret on the element you are interested in (function/class/identifier/ect) and invoke View | Quick Documentation (Ctrl + Q using Default keymap).

https://www.jetbrains.com/help/phpstorm/2016.3/viewing-inline-documentation.html


If you want this documentation window to be always visible -- just pin it (using Pin icon in top right corner). It will show the info on most recently invoked element.

If you want this info to be automatically updated for the element that is currently focused (based on caret position) -- activate Auto-update from Source option there.


If you want this documentation window to appear automatically on mouse hover -- activate Settings/Preferences | Editor | General --> Show quick documentation on mouse move option (delay is configurable).

LazyOne
  • 158,824
  • 45
  • 388
  • 391
  • Is it also possible to configure it like in netbeans so that it only shows on mouse over + holding CTRL? That would be great. – Black Mar 07 '17 at 12:04
  • 1
    AFAIK -- No. Found these tickets (they seem related): https://youtrack.jetbrains.com/issue/IDEA-156484 ; https://youtrack.jetbrains.com/issue/IDEA-164821 -- watch them (star/vote/comment) to get notified on any progress. – LazyOne Mar 07 '17 at 12:20
  • The only alternative I know to have it working on Ctrl+Hover -- Pin the `Quick Documentation` window (so it's always visible) and Ctrl+Hover will update it without the need to move the caret there. – LazyOne Mar 07 '17 at 12:22