Hiding generated js files in Visual Studio 2017

How can I hide the generated js files (Transpiled from Ts files) in the solution explorer?

Let's say I have an angular website. I am adding this angular project to Visual Studio (Chose Visual Studio 2017 Enterprise as my code editor). There seems to be no direct way to hide these js files created. The solution suggested by Hiding js files in visual studio looks very rude.

I'm more likely to come up with a solution similar to what was suggested in Hide .js.map files in Visual Studio code , but it seems to only apply to VS code. How can I achieve this in Visual Studio? Where can I see workspace settings for an existing website (angular project) added in visual Studio?

+5
source share
1 answer

Even if this is not the exact answer to your question, I recommend not to hide js files in a specific editor, but to organize the project so that the compiled code is separated from the source files. Usually in your project there are src and dist folders. To achieve this, you can use outDir in tsconfig.json .

+1
source

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


All Articles