TypeScript中的区域 [英] Regions in TypeScript

查看:196
本文介绍了TypeScript中的区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的JavaScript(.js)文件中,我使用Visual Studio 2012插件用于区域(这里)像这样:

In my JavaScript (.js) files, I use a Visual Studio 2012 plugin for regions (here) like this:

//#region "My Region"

//Code here

//#endregion "My Region"

我也希望在TypeScript(.ts)文件中也有区域。这是现在的可能性吗?

I would also like to have regions in TypeScript (.ts) files as well. Is this a possibility right now?

推荐答案

您可以下载 Web Essentials 2012 ,它允许您在TypeScript中使用区域。

You can download Web Essentials 2012, it lets you use regions in TypeScript.

如果您使用,Visual Studio 2015,这是最新鲜的链接。
Web Essentials 2015.3

If you use, Visual Studio 2015, here is the freshest link. Web Essentials 2015.3

这篇关于TypeScript中的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆