TypeScript,HTML& Visual Studio 2015中的JS文件嵌套 [英] TypeScript, Html & JS file nesting in Visual Studio 2015

查看:110
本文介绍了TypeScript,HTML& Visual Studio 2015中的JS文件嵌套的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio中管理/控制TypeScript文件的嵌套?

我混合使用了嵌套&不是嵌套文件,我不确定如何/为什么,如下所示.

解决方案

TypeScript项目中JavaScript文件的默认设置是排除它们而不是嵌套它们-但是,如果您愿意,可以通过多种方式嵌套它们.

您可以破解注册表...或手动更改项目文件的XML ...,但是更简单的选择是让Mads Kristensen使用他的文件嵌套扩展程序.

右键单击.js文件,然后选择嵌套文件".然后会显示一个对话框,供您选择要嵌套的文件(通常会猜出正确的答案).

How do I manage/control the nesting of TypeScript files in Visual Studio?

I am getting a mix of nested & not nested files, I'm not sure how/why, as shown below.

解决方案

The default for JavaScript files in a TypeScript project is to exclude them rather than nest them - but there are several ways you can nest them if you prefer.

You can hack the registry... or hand-crank your project file's XML... but the easier option is to let Mads Kristensen do it for you with his File Nesting Extension.

You right-click on the .js file and select "Nest File". It will then show a dialog for you to choose the file to nest under (and usually guesses the right answer).

这篇关于TypeScript,HTML& Visual Studio 2015中的JS文件嵌套的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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