VS Code - Hide Closing Bracket When Code Block is Folded

Viewed 1176

I'm using Visual Studio Code and looking for a way to hide the closing bracket of a code block when that code block is folded, can't seem to find a setting for that, the code just looks wrong to me since I'm used to the Visual Studio IDE which has this behavior.

Current Behavior

Current Behavior

Expected Behavior

Expected Behavior

2 Answers

Install Explicit Folding on VS code and past this settings on JSON file and Enjoy...

    "explicitFolding.rules": {
    "javascript": [
        {
            "begin": "{",
            "end": "}"
        },
        {
            "begin": "`",
            "end": "`"
        },
        {
            "foldLastLine": true
        }
    ]
},
Related