Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code - Hide Closing Bracket When Code Block is Folded

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

like image 614
Moe Baker Avatar asked Apr 25 '26 06:04

Moe Baker


1 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
        }
    ]
},
like image 60
Lisan E Avatar answered Apr 28 '26 13:04

Lisan E