File > Preferences > Keyboard Shortcuts
Click “Open keyboard shortcut” button on the upper right corner.
1 2 3 4 5 6 7 |
[ { "key": "F2", "command": "editor.foldLevel2", "when": "editorTextFocus && foldingEnabled" } ] |
Reference: