You Want VS Code to Collapse *ALL* (Comments and Functions)

Then, this is what your keybindings.json needs to contain (highlighted bit):

[
    {
        "key": "ctrl+alt+/",
        "command": "workbench.action.editorLayoutSingle"
    },
    {
        "key": "ctrl+alt+shift+f",
        "command": "editor.foldAll",
        "when": "editorTextFocus"
    }
]

Comments

Popular posts from this blog

Poor Documentation - How Could You Do this to Us K&R?

A Classic C Programming Mistake - See if You Can Spot it