TypeScript,HTML& Visual Studio 2015中的JS文件嵌套 [英] TypeScript, Html & JS file nesting in Visual Studio 2015
问题描述
如何在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屋!