How to show inferred TypeScript type in WebStorm?

Joe picture Joe · Sep 17, 2013 · Viewed 10.6k times · Source

In VS2012, you can hover over a typescript variable and it will show you the inferred type. Is there a similar feature in webstorm?

Answer

basarat picture basarat · Sep 17, 2013

Although not perfect. Press the Ctrl key (or ⌘ Cmd on macOS) and hover over a variable with the mouse to kick in the inference logic in webstorm :

enter image description here