Reputation: 3068
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?
Upvotes: 1
Views: 1080
Reputation: 38373
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.
Upvotes: 0
Reputation: 5402
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.
Upvotes: 1