TypeScript, Html & JS file nesting in Visual Studio 2015

随声附和 提交于 2019-12-12 07:48:05

问题


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.


回答1:


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).



来源:https://stackoverflow.com/questions/31670209/typescript-html-js-file-nesting-in-visual-studio-2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!