How to hide js files in Visual Studio 2015?

I have a cordon-ion project setup in Visual Studio.

Now I have ts and js files in one folder. I would like to hide js files that have the corresponding ts file in the folder.

How to do it?

+1
source share
2 answers

If you right-click on each file and select "Exclude from project", they will be hidden if you do not have "Show all files" selected in the solution explorer.

+1
source

You can stop VS from creating JS files in general by adding <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> to the first <PropertyGroup> in your project (.csproj).

More information here: https://github.com/Microsoft/TypeScript/issues/2326

This is probably not what you are looking for, but it will achieve the result of no visible .js files.

0
source

Source: https://habr.com/ru/post/1266509/


All Articles