Sublime Forum

Sublime doesn't recognise .ts files as Typescript

#1

Hi,

2 Questions:

  1. The typescript package seems to have been installed ok but If I create an new .ts file sublime 2 thinks it is a javascript file (as shown in bottom right of screen).
    If I select syntax, Typescript then it’s ok but I have to do this all the time for new files! See below excerpt from the Typescript tmlanguage file which looks fine.

  2. Is there a way to automatically run the typescript compiler on save rather than using the hotkey (Ctrl+Alt+Y) every time manually?

Thanks?
Tom

<?xml version="1.0" encoding="UTF-8"?> fileTypes ts str
0 Likes

#2

Have you tried “open all with current extension as” ? this usually does the trick

0 Likes

#3

Yes - great, that did it.
Thanks.

Took a little finding, for others:
View -> Syntax -> Open all with current extension as… ->

0 Likes