Typescript Support for Visual Studio 2017

前端 未结 5 1134
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 02:28

I have recently been trying to learn TypeScript, and in some of the videos I have been watching after installing the \'Web Essentials\' extension when working with a .ts fil

5条回答
  •  一整个雨季
    2020-12-24 03:01

    I have a work around, it is a bit of work but helps with the odd occasions when I want to check the output.

    I am running vs2017 I have web essentials installed and web compiler, but it still doesn't appear to support ts as of 15.4 and I couldn't get the tsconfig.json to work.

    Briefly show the hidden files in your project and select the corresponding js file, then drag the tab to the right so you have a split screen

    When you change and save the ts file, you might get a popup saying "The file has changed" or something like that, there is a check box you can select on there which says "AutoRestore if no changes detected" (again I might be paraphrasing, I attempted to find the option so I could reset it to get a screenshot but I cannot find it!), check that and then select "Yes to All" this refreshes the js file. The next time you change your ts file the js file will update.

    I know it isn't great, but I found it very useful as I could get an analog of what you see when following the course and they keep showing the preview of the javascript.

提交回复
热议问题