I have cordova-ionic project setup in Visual Studio.
Now I have ts and js files within a single folder. I would like to hide js files which has corresponding ts file in the folder.
How to achieve this?
I have cordova-ionic project setup in Visual Studio.
Now I have ts and js files within a single folder. I would like to hide js files which has corresponding ts file in the folder.
How to achieve this?
If you right click on each file and select "Exclude From Project" they will be hidden, as long as you don't have "Show All Files" selected in Solution Explorer.
You can stop VS from generating the JS files altogether by adding <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
in to the first <PropertyGroup>
in your project (.csproj) file.
More information here : https://github.com/Microsoft/TypeScript/issues/2326
This is probably not what you are looking for but it will achieve the outcome of not having .js files visible.