Inspecting methods and interfaces
I use WebStorm (and PhpStorm) 2016.2
In training-videos for Angular, I see that some instructors use VisualStudio.
A feature of VS is that if you can hover your mouse over an error shown by the editor to see detailed information about the error in a tooltip with syntax-highlighted code.
In addition you can hover your mouse for example over the PipeTransform interface, to inspect it.
If we do so, we can see in a tooltip appearing which contains syntax-highlighted code, that shows it has a transform method that takes a value that can be of any type, and an array of args that is optional, and returns a value of any type.
Is this also possible with WebStorm? The closest I could come is to place the cursor on PipeTransform and press ctrl+shift+i.
Are there better ways?
Regards, Jack.
Please sign in to leave a comment.
Not sure i follow you... would you like to see a quick definition on mouse hover? This popup is too heavy to be shown on mouse hover (see https://youtrack.jetbrains.com/issue/IDEABKL-5345#comment=27-23662). you need hitting ctrl+shift+i to see it.
Detailed information about the error is shown on mouse hover over highlighted statement. If the statement with error is out of view, you can see the code snippet in tooltip on hovering over error strip mark in the right gutter:
see https://www.jetbrains.com/help/webstorm/2016.2/lens-mode.html
Thanks, I wasn't aware I could leave snapshots.
Compared
VS: just hovering:
WS: This is ctrl-mouse click, the shift-ctrl-i gives a pop-up but without syntax-highlighting (I couln't make a snaphot from that)
Anyway, it works for me, but I though room for improvement on WebStorm... :-)
Regards, Jack