How to show inferred TypeScript type in WebStorm?

前端 未结 4 994
难免孤独
难免孤独 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:26

    Late to the party, and not sure when this came out, but there is a setting:

    Show quick documentation on mouse move. Delay: [500] ms

    Where delay is editable.

    You can get to it by

    File -> Settings -> Editor/General -> #Other / Show quick documentation on mouse move

    Works similar to VS

提交回复
热议问题