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?
Try Ctrl+Shift+P</kbd> (
View/Expression Type) - it normally shows the inferred variable type
Since WS2017.2 Ctrl+Hover</kbd> shows inferred type.