In VS2012, you can hover over a typescript variable and it will show you the inferred type. Is there a similar feature in webstorm?
相关问题
- Angular RxJS mergeMap types
- void before promise syntax
- Ignore Typescript errors in Webpack-dev-server
- Angular: ngc or tsc?
- Programmatically navigating : React Router V4+ Typ
相关文章
- Cannot find module 'redux' 怎么解决?
- How to get a Component's own ElementRef for re
- 'Pick' only refers to a type, but is being
- PHPStorm Code Hinting for array of object arrays
- Why does `keyof any` have type of `string | number
- React testing library: Test attribute / prop
- TypeScript - Puppeteer library error: “Cannot find
- How to reference type of self in Typescript interf
Assuming the cursor is already on the variable the best way is:
Starting from WS2017.2 Ctrl (Cmd) + Hover shows inferred type.
Also you can try Quick Documentation: Ctrl + Q ( F1 for OS X )
Depending on the context, there are different ways to get type information. (Shortcuts for OS X)
Although not perfect. Press the Ctrl key and hover over a variable with the mouse to kick in the inference logic in webstorm :