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 to hide the auto-generated 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"}
    }
}

Post a Comment

Please do not post any spam link in the comment box😊

Previous Post Next Post

Blog ads

CodeGuru