by ng12 · 9y ago · 0 comments
> 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-suppor...
I was real excited that I could finally use the same IDE for front-end and back-end too... :/
Beyond the basic functionality working, the paid versions have a lot of cross-langauge support (PyCharm gets a huge chunk of the JetStorm functionality) which means that autocomplete "just works".
Like when I'm writing Angular templates, it looks up my custom directives and provides autocomplete on that. It is able to give autocomplete inside Angular expressions (down to looking up the controller and providing type information if you're using Typescript) inside my Django templates.
It's a lot of fuzzy searching but they have very good heuristics.
I think it would be near-impossible to get this cross-language support in Atom/Emacs, if only because it requires the I in IDE. Totally worth it.
They have free licenses for students that includes all their products and a discount when you graduate. If you're making money off it, the license cost for intellij or just webstorm is pretty cheap.
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++
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.
VSCode is an Electron app, that means that it is written in Javascript and HTML5. Electron apps are notoriously resource intensive even though their UI is typically responsive. Watch your CPU usage spike and battery life plummet as you use Electron apps.
Even the Slack messaging client (another Electron app) can spike a CPU under certain circumstances. And that is a simple messaging client that doesn't have to parse and markup code like an IDE does.
I've been a dedicated Sublime Text user for years (wary of IDEs like you) but VS code kicks ST2/3's butt for Typescript development.
And that editor has the absolute best VIM keybinding implementation of any popular IDE outside real VIM / NeoVIM. If you haven't looked yet, this is what finally got me out of the terminal for coding: https://plugins.jetbrains.com/idea/plugin/164-ideavim
Jump to definition/auto import/implement interface/etc all work.
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.
Visual Studio on the other hand is a gigantic IDE that only runs on Windows.