3 ms·
Make sure you turn on the native TypeScript Language Service feature, otherwise you'll be getting your IDE's parser, which is always behind the standard and doe
by jameslk 10y ago
Make sure you turn on the native TypeScript Language Service feature, otherwise you'll be getting your IDE's parser, which is always behind the standard and doesn't work very well:
> Select the Use TypeScript Service check box to get native support from the TypeScript Language Service according to the up-to-date specifications. In this case syntax and error highlighting is performed based on the annotations retrieved from the TypeScript Language Service while code completion lists contain both suggestions from the TypeScript Language Service and suggestions calculated by IntelliJ IDEA itself.
https://www.jetbrains.com/help/idea/2016.2/typescript-support.html#d829002e95 https://www.jetbrains.com/help/idea/2016.2/typescript-suppor...
- ng12 10y agoWell that solved some problems (e.g. importing from react-router/lib/*) but autocomplete for TSX is non-functional. Still pretty frustrating considering ES6 works out of the box.
- chaostheory 10y agoI could be doing things wrong but in my exp, Webstorm's autocomplete is non-existent for anything that you import
- jsight 10y agoStrange, it seems to work fine for me. Find usages on the other hand is a totally random mess.
- pierrehenrit 10y agoI have the same issue for some of the libraries. I'm just starting with TS so it can be user error. However, I found that you can download the typings in the IDE in Settings/Javascripts/Libraries and download... This is tedious to have to do this though. Note: doing this works with normal JS as well which is pretty cool.
- Rapzid 10y agoI've been working VS Code with TypeScript regularly for over a year now. It sounds like you want to stay in Intellij, but the language services experience in VS Code is top notch for TypeScript.