Sean
Sean

Reputation: 15164

TypeScript, Html & JS file nesting in Visual Studio 2015

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.

Nested & non-nested files

Upvotes: 14

Views: 4839

Answers (1)

Fenton
Fenton

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

Related Questions