问题
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