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"}
    }
}

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

إرسال تعليق (0)
أحدث أقدم