6 ms·
Speaking of tooling -- has anyone had a good experience with Typescript in IntelliJ/Webstorm? It does a fantastic job figuring out ES6 code but seems to totally
by ng12 10y ago
Speaking of tooling -- has anyone had a good experience with Typescript in IntelliJ/Webstorm? It does a fantastic job figuring out ES6 code but seems to totally choke on Typescript. I'd like to avoid switching to Visual Studio.
- lukaszjb 10y agoMy proposition is out of the box but maybe get a chance to VSCode?
- pmoleri 10y agoIn my team we used to be splitted between sublime/webstorm/atom, now we all are pretty happy with VS Code for typescript and javascript.
- ng12 10y agoMoving a team of ~20 engineers from IJ to VSCode for a single technology is a nonstarter. IJ is still the preferred IDE for the backend and works perfect for everything we've used that's not Typescript.
- Derander 10y agoThat's odd. I work in a 100% typescript shop and about half the devs use intellij and webstorm full time without much trouble. Jump to definition/auto import/implement interface/etc all work.
- ken47 10y agoI'll second that. I use an IDE from the Intellij family and things work fine.
- jameslk 10y agoMake 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.
- DCoder 10y agoIntelliJ Ultimate user here, writing and refactoring TS works quite well. There are some minor issues (e.g. sometimes it doesn't show the usual "this method is overridden in a child class" indicator), and refactoring likes to randomly modify somearray['foo'] when renaming a someclass.foo property, but I can live with that.
- faceyspacey 10y agoHow is Flow looking in webstorm? As good as their typescript support?
- DCoder 10y agoI haven't tried Flow, so I can't say.
- aurbano 10y agoI've used both extensively in IntelliJ IDEA Ultimate. It's slightly harder to setup than TS, and it feels less mature - but it's very hard to explain why with concrete examples. I did have to turn off code completion based on flow, because it slowed down the IDE noticeable (they do warn of this next to the setting...), but I hope that support will improve in the next versions, as flow gets more mature.
- realharo 10y agoThe inspections, autocomplete, and auto-import suggestions work great for me, but it doesn't seem to have that "show type on hover" functionality (not even Ctrl+hover, or quick documentation show it), that VSCode and even the online Monaco editor on http://www.typescriptlang.org/play/ http://www.typescriptlang.org/play/ have.
- Qerub 10y agoPressing the keyboard shortcut for the "expression type" command is not that cumbersome though (default: ctrl + shift + p).
- realharo 10y agoThat doesn't seem to show the same information as VSCode though. If you go to https://goo.gl/zteCbj https://goo.gl/zteCbj and hover over the `x`, it will show type A. If you hover over `y` it will show either AB or B|null, depending on whether you have strictNullChecks enabled. IntelliJ also doesn't show any information for type aliases.
- XaspR8d 10y agoFor passersby who were confused like I was: IntelliJ Community Edition has absolutely no support for Javascript or Typescript, which is not noted clearly in the help docs. You apparently need Ultimate Edition to get it. I was real excited that I could finally use the same IDE for front-end and back-end too... :/
- kakarot 10y agoThe price gets lower each year for the first few years you renew your license. My company pays for my license but I think it's hella worth it and I'd pay it on my own if I had to. I avoid VS like the plague and I've never really felt at home in an IDE until I started using IntelliJ. It's the only thing that was able to get me off of Notepad++
- SquareWheel 10y agoI also avoid VS, but VSCode is nothing at all like its big brother. It's actually very quick and lean. If you're interested in TypeScript at all, the two were made for each other. I'd suggest giving it a try. Just note it's closer to a text editor with IDE functionality, rather than a full-blown IDE itself.
- kakarot 10y agoI can pretty much get that and more with Notepad++ or Sublime, though. I've moved back to vim for simple text editing, N++ for casual writing and organizing my thoughts. Is there any specific feature that makes it better than other editors in your book?
- kwood 10y agoApart from Intellisense completion, a full featured integrated debugger, version control integration wich supports line wise staging, a diff viewer, a fast integrated terminal that even gets link detection in the next release, proper variable renaming and a working "Go to Definition" that is even implemented in most of the third party language plugins? No. Pretty much the same as Notepad++.
- skrowl 10y agoWhy do you want turn avoid Visual Studio out of curiosity? It's pretty great now.
- neuronexmachina 10y agoI was about to say "Visual Studio doesn't work in Linux," but apparently it (or at least Visual Studio Code) actually does now. Living in the future is weird.
- philliphaydon 10y agoWhen did VSCode not work for linux???? I'm confused...
- positr0n 10y agoFYI VSCode has always been an electron app, and thus always worked on all platforms. Visual Studio on the other hand is a gigantic IDE that only runs on Windows.
- ng12 10y agoTeam's standardized on IntelliJ so everyone already has Ultimate. It works great for everything not-Typescript.