Skip to content

What do you think about Visual Studio Marketplace? We are looking for feedback from developers like you! Take the survey

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

Fold Level

vikyd

|
10,007 installs
| (3) | 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
  • Terms of use
  • Trademarks
© 2023 Microsoft