Reputation: 15164
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.
Upvotes: 14
Views: 4839
Reputation: 251172
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).
Upvotes: 13