How to show inferred TypeScript type in WebStorm?

前端 未结 4 983
难免孤独
难免孤独 2020-12-25 09:35

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

4条回答
  •  遥遥无期
    2020-12-25 10:13

    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

提交回复
热议问题