4 ms·
I recently started learning TS after reading a previous HN post on it (https://medium.com/@basarat/typescript-won-a4e0dfde4b08 https://medium.com/@basarat/types
by azurelogic 10y ago
I recently started learning TS after reading a previous HN post on it (https://medium.com/@basarat/typescript-won-a4e0dfde4b08 https://medium.com/@basarat/typescript-won-a4e0dfde4b08) and listening to the JS Jabber episode with Anders Hejlsberg himself explaining the benefits (https://devchat.tv/js-jabber/209-jsj-typescript-with-anders-hejlsberg https://devchat.tv/js-jabber/209-jsj-typescript-with-anders-...). These two (plus knowing that Angular 2.0 is going to be much easier with TX) totally sold me on learning it. I'm in the middle of this Pluralsight course: https://app.pluralsight.com/library/courses/typescript-in-depth/table-of-contents https://app.pluralsight.com/library/courses/typescript-in-de.... Besides the benefits of TS, I'm learning how perfect VS Code is for writing it. I've been a big proponent of WebStorm in the past, but VS Code is really shining for this type of work.
- Tx3 10y agoAbout the text editor: I think all editors use the same TypeScript compiler APIs. That would mean that you would get pretty much same suggestions, error lists, etc. Correct me if I am wrong. VS Code could have some other API calls or project file support. JS Jabber episode was great! Full of great insights.
- evmar 10y agoI use TypeScript from both Emacs and VSCode, depending on my mood. They do both use the same underlying compiler API, but the VSCode support is more pleasant in how it's surfaced in the editor: ctl-click on a variable to jump to its definition, f2 to rename the variable under the cursor, or ctl-T to open a query field to jump to a symbol. Emacs is capable of all of these things (because Emacs is capable of anything) but it doesn't work that way out of the box nor is there an already-written package around that makes that easy. To rename you type M-x tide-rename-symbol and it's inconvenient enough that I forget to use it.
- jasonm23 10y agoSo bind f2 to tide-rename-symbol in the mode map. And throw the bind into your .emacs
- bdcravens 10y agoWebStorm does offer syntax highlighting of HTML inline templates, but I'm sure that's a matter of time before that feature comes to VS Code. I do think that WS does provide a nice workflow at the expense of a much heavier tool.
- smt88 10y agoCoding/language support is very comparable between WebStorm and VS Code. WebStorm is a much larger and full-featured IDE, though. Most people won't use most features, but I found that I missed one or two things in VS Code and had to go back to WebStorm.
- azurelogic 10y agoI'm still debating between the two. I do miss the code corrections (like the suggestions to add module imports) when using VS Code. That said, I'm very impressed with the progress that VS Code has made in such a short time.