JavaScript进阶之路漫漫其修远兮。(~强烈建议使用Sublime编辑器查看本站给出的示例代码,因为它帅呆了~)
  • 首页
  • Sublime配置TypeScript方法

作者:田大才子2017-8-28 14:29分类:

1.安装NPM输入如下命令安装TypeScript 编译器

npm install -g typescript


2.下载sublime的typecript的插件,地址如下:

https://github.com/Microsoft/TypeScript-Sublime-Plugin


3.打开Sublime Text -> Tools -> Build System -> New Build System,新建如下内容:

{
    "cmd": ["tsc","$file"],
    "file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$",
    "selector": "source.ts",

    "windows": {
        "cmd": ["tsc.cmd", "--target", "ES5", "$file"]
    }
}

4.重启sublime即可,ctrl + B 即可编译。

温馨提示如有转载或引用以上内容之必要,敬请将本文链接作为出处标注,谢谢合作!

已有 18/8026 人参与

评论:

十大雞雞真相 2023-08-14 21:40
亞洲人平均長度 <a href="https://largexxl-cn.premium4best.eu/">largexxl cn老二尺寸</a> 老二
trykjswm 2023-04-25 21:30
Sublime配置TypeScript方法
<a href="http://www.g85e53182gmewd1j6s1246srt93vwa7ps.org/">atrykjswm</a>
[url=http://www.g85e53182gmewd1j6s1246srt93vwa7ps.org/]utrykjswm[/url]
trykjswm http://www.g85e53182gmewd1j6s1246srt93vwa7ps.org/
ybdpepdoxr 2023-04-17 21:35
Sublime配置TypeScript方法
ybdpepdoxr http://www.gh4607su9f4rm1qxebbr366dyx555468s.org/
<a href="http://www.gh4607su9f4rm1qxebbr366dyx555468s.org/">aybdpepdoxr</a>
[url=http://www.gh4607su9f4rm1qxebbr366dyx555468s.org/]uybdpepdoxr[/url]
jqpycpgxw 2023-04-04 00:42
Sublime配置TypeScript方法
[url=http://www.g565myhxbr2j2fy5v338w5386rmwl120s.org/]ujqpycpgxw[/url]
<a href="http://www.g565myhxbr2j2fy5v338w5386rmwl120s.org/">ajqpycpgxw</a>
jqpycpgxw http://www.g565myhxbr2j2fy5v338w5386rmwl120s.org/
fdihmmclw 2023-01-21 07:11
Sublime配置TypeScript方法
fdihmmclw http://www.g8h8d4g35bi0w3pgfm5pib81d210405os.org/
<a href="http://www.g8h8d4g35bi0w3pgfm5pib81d210405os.org/">afdihmmclw</a>
[url=http://www.g8h8d4g35bi0w3pgfm5pib81d210405os.org/]ufdihmmclw[/url]
老二大小 2022-10-07 21:11
按摩陰莖 <a href="http://largexxlcn.cyou/">男人 尺寸</a> 陰莖 平均
ovocazy 2022-09-18 03:08
酷 博客  <a href="https://okna-pila-2022.premiumwroclaw.eu/">https://okna-pila-2022.premiumwroclaw.eu/</a>
apesi 2022-09-18 02:25
超级 博客  <a href="https://okna-pcv-plastikowe-pila-2022.premiumwroclaw.eu/">https://okna-pcv-plastikowe-pila-2022.premiumwroclaw.eu/</a>
odajymy 2022-09-18 01:41
酷 条目  <a href="https://okna-kielce-2022.premiumwroclaw.eu/">https://okna-kielce-2022.premiumwroclaw.eu/</a>
urusoja 2022-09-18 01:00
超级 文章  <a href="https://okna-pcv-plastikowe-kielce-2022.premiumwroclaw.eu/">https://okna-pcv-plastikowe-kielce-2022.premiumwroclaw.eu/</a>

发表评论:

个人公众号,希望您的关注~