2017-08-15 40 views

回答

0

選擇Others

這是我tsc任務運行的例子:

{ 
    // See https://go.microsoft.com/fwlink/?LinkId=733558 
    // for the documentation about the tasks.json format 
    "version": "2.0.0", 
    "tasks": [ 
     { 
      "taskName": "tsc", 
      "command": "tsc --watch", 
      "type": "shell", 
      "problemMatcher": [ 
       "$tsc-watch" 
      ] 
     } 
    ] 
} 

之後,你有救了,你可以這樣做:

CTRL + + P - >任務:運行任務 - >tsc

現在每次更改並保存任何*.ts-文件,它將運行並重新編譯。

+0

感謝您的回答 – user2337353

+0

@ user2337353如果這有助於您解決問題,請註冊/標記爲答案。 – Arg0n

相關問題