Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>fold-at-levelsNew to Visual Studio Code? Get it now.
fold-at-levels

fold-at-levels

Elliot Plant

|
530 installs
| (1) | Free
Folding and unfolding at numbered levels, similar to Atom's native folding
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Fold At Levels

Code folding similar to Atom, where you can fold code exactly at a particular level. Unlike atom, it does not fold code that contains your cursor

Recommended keybindings

To match the experience of Atom, bind the keys cmd+k cmd+<level> for levels 1-9.

{
  "key": "cmd+k cmd+1",
  "command": "fold-at-levels.foldAtLevel1",
  "when": "editorTextFocus && foldingEnabled"
},
{
  "key": "cmd+k cmd+2",
  "command": "fold-at-levels.foldAtLevel2",
  "when": "editorTextFocus && foldingEnabled"
},
...
{
  "key": "cmd+k cmd+9",
  "command": "fold-at-levels.foldAtLevel9",
  "when": "editorTextFocus && foldingEnabled"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft