Enjoy TypeScript in WebStorm

WebStorm has had TypeScript support for quite some time. As the language continues its evolution toward 1.0, we also continue to improve its support in WebStorm.

Here we’d like to make a brief overview of TypeScript support in WebStorm 7 and some updates related to the latest TypeScript 0.9.1, for example, code completion and inspections for Generics.

Watch the screencast to learn about these improvements, get productivity tips forTypeScript, and look through a list of the most useful shortcuts.

One of the new features in WebStorm 7 that cannot go unmentioned is access to TypeScript community stubs. They provide TypeScript definitions for a wide range of JavaScript libraries and help code completion. They are available for Download in Preferences | JavaScript | Libraries.

WebStorm provides powerful refactorings for TypeScript code, which are available in the main menu or via these shortcuts:

  • Ctrl+Alt+V (Cmd+Alt+V on Mac) to introduce variable or constant.
  • Shift+F6 – inplace rename variable, class, etc.
  • Ctrl+Shift+M (Cmd+Shift+M on Mac) to extract method.
  • Ctrl+Shift+P (Cmd+Shift+P on Mac) to extract parameter.
  • Move file, copy.

Try the following actions for efficient code navigation:

  • Ctrl+Click (Cmd+Click on Mac) on method, class or variable to navigate to its definition.
  • Ctrl+N (Cmd+O on Mac) – Goto Class name.
  • Ctrl+Alt+Shift+N (Cmd+Alt+O on Mac) – Goto symbol to navigate to methods or global functions/variables.

With Quick Definition action (Ctrl+Shift+I / Alt+Space), these two Goto actions become extremely powerful:

You can also read about TypeScript File Watcher configuration, Debugging TypeScript and basic editor features in our previous post about TypeScript in WebStorm.

Develop with pleasure!
WebStorm Team

About Ekaterina Prigara

Ekaterina Prigara is WebStorm product marketing manager at JetBrains. She's passionate about new technologies, UX and coffee.
This entry was posted in Cool Feature, Screencast. Bookmark the permalink.

10 Responses to Enjoy TypeScript in WebStorm

  1. This is great news. When is the availability date? Also, will this be available in IntelliJ IDEA 12? When? :-)

  2. Pingback: Knockout.js の Utility や Plugin (programming, debugging, monitoring) #html5biz - 松崎 剛 Blog - Site Home - MSDN Blogs

  3. Pingback: TypeScript – Getting Started | Encyclopedia of Daniel

  4. Marcus says:

    How often is the Typescript language interpreter updated in Webstorm? That is, now that we’re on TS 1.3, what sort of timeline are we looking at for Webstorm to support this for formatting purposes?

Leave a Reply

Your email address will not be published. Required fields are marked *