Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get support of TypeScript with Sublime Text 3?

You can do this by pressing Ctrl + shift + p write ipc and press enter to open the Package Manager. After that, type TypeScript and choose the first option which is published by http://typescriptlang.org.

Note: For Mac OS users, use Command (⌘) + shift + p instead of Ctrl + shift + p.


If it's not already done, you first have to install the Package installer, like that:

  • Press Ctrl + shift + p
  • Type "inst" and select Install Package Control

The following pop-up appears:

Package Control was successfully installed

Use Command Palette and type "Install Package" to get started

Now you can install the Typescript support like that:

  • Press Ctrl + shift + p
  • Type "inst" and select Package Control: Install Package
  • Type "type" and select "Typescript"

Now you can open a file.tsand change the type to Typescript clicking in the right bottom of the editor where Plain Text is selected by default.


If you are using mac OS then use the following command

cd ~/"Library/Application Support/Sublime Text 3/Packages"
git clone --depth 1 https://github.com/Microsoft/TypeScript-Sublime-Plugin.git TypeScript

After that press cmd+shift+p in sublime text 3 , then type "TypeScript" and select "TypeScript" and press enter.

And on Windows:

cd "%APPDATA%\Sublime Text 3\Packages"
git clone --depth 1 https://github.com/Microsoft/TypeScript-Sublime-Plugin.git TypeScript

After that press Ctrl+shift+p write install packages and press enter, then type "TypeScript" and select "TypeScript" and press enter.


(If you're on Mac, press Cmd instead of Ctrl in the key combos below.)

Press Ctrl+Shift+P and type "Install package". If "Install package control" appears as an option, pick it, and then press Ctrl+Shift+P again and type "Install package". Pick "Package Control: Install Package". Wait a moment and a new dropdown menu will appear. Type "TypeScript" and pick the option with that exact name.