Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Fold LevelNew to Visual Studio Code? Get it now.
Fold Level

Fold Level

vikyd

|
16,680 installs
| (4) | Free
Additional Fold Commands by One Step Shortcut, Like PhpStorm
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Fold Level

VSCode Market

Additional Fold Commands by One Step Shortcut.

Like PhpStorm: Expand to level | 1, 2, 3, 4 or 5

foldlevel

Usage & Commands

Set shortcuts:

  • Press
    • Mac: Command + Shift + p
    • Win: Ctrl + Shift + p
  • Open Keyboard Shortcuts File
  • Append:
    {
        "key": "alt+1",
        "command": "vikyd.FoldLevel.level1"
    },
    {
        "key": "alt+2",
        "command": "vikyd.FoldLevel.level2"
    },
    {
        "key": "alt+3",
        "command": "vikyd.FoldLevel.level3"
    },
    {
        "key": "alt+4",
        "command": "vikyd.FoldLevel.level4"
    },
    {
        "key": "alt+5",
        "command": "vikyd.FoldLevel.level5"
    },
    {
        "key": "alt+6",
        "command": "vikyd.FoldLevel.level6"
    },
    // ↓  optional
    {
        "key": "alt+-",
        "command": "editor.foldAll"
    },
    // ↓  optional
    {
        "key": "alt+=",
        "command": "editor.unfoldAll"
    }
    

Thanks

  • https://github.com/dakaraphi/vscode-extension-common
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft