Is there a way in WebStorm to get the type of a function or a variable?
In Visual Studio Code, I can hover over an identifier, and I get type information about the element under the cursor:

It can also show the effective type of a variable:

Both are extremely helpful tools for better understanding the code.
Is there a way in WebStorm to access the effective type of an element in the editor?
Ctrl+Shift+I (View/Quick Definition)
Try Ctrl+Shift+P (View/Expression Type) - it normally shows the inferred variable type
Since WS2017.2 Ctrl+Hover shows inferred type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With