How to turn off javascript file nesting in Visual Studio 2015

In Visual Studio 2015 when I create a new js file with the same name and in the same folder as an html file, it will be nested under it:

enter image description here

And I just can't turn off this nesting in Tools / Options, but maybe it only eluded me. I've tried the vs extension described in this post. But when I click on File Nesting / Un-nest item nothing happens, it stays the same.

Upvotes: 4

Views: 297

Answers (1)

Hari
Hari

Reputation: 21

Remove the extension you do not want to nest in the following file:

C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\Microsoft\Web Tools\ProjectSystem\.filenesting.JSON

I'm on: Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.3.4

Upvotes: 1

Related Questions