Showing posts with label vscode. Show all posts
Showing posts with label vscode. Show all posts

How to hide generated javascript file in visual studio code

In this post I am going to show you a cool trick in visual studio code. Let's suppose you are writing typescript code in visual studio code and you want to hide generated javascript code.

Create .vscode folder in your folder and then create settings.json file and paste following code

{
    "files.exclude": {
        "node_modules":true,
        "**/.git"true,
        "**/.DS_Store"true,
        "**/*.js.map"true,
        "**/*.js": {"when""$(basename).ts"}
    }
}