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

Fold All

Tharindu N. Madhusankha

| (0) | Free
Fold and unfold all functions and methods in the current file with one click.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Fold All

Fold and unfold all functions and methods in the current file with one click - directly from the editor title bar.

VS Code Marketplace License: MIT GitHub


Fold All in action

How It Works

Click the ☰ icon in the editor title bar to toggle folding for all functions and methods in the current file.

Action Result
First click Folds all functions, methods, and constructors
Second click Unfolds them all
Switch file State resets automatically

Features

  • One-click fold/unfold toggle in the editor title bar
  • Works with any language that has a Document Symbol Provider
  • Handles nested functions and methods correctly
  • Supports arrow functions in TypeScript and JavaScript
  • Zero configuration required

Supported Languages

Any language with a Document Symbol Provider, including:

TypeScript  ·  JavaScript  ·  Python  ·  Go  ·  Rust  ·  Java  ·  C / C++  ·  C#  ·  PHP  ·  Ruby  ·  and more


Supported Symbol Types

  • Functions
  • Methods
  • Constructors
  • Arrow functions (const fn = () => {})

Requirements

  • VS Code 1.115.0 or later

Contributing

Contributions are welcome! To get started:

  1. Fork the repository

  2. Clone your fork and install dependencies

    git clone https://github.com/your-username/fold-all.git
    cd fold-all
    bun install
    
  3. Make your changes in src/extension.ts

  4. Build and verify

    bun run build
    
  5. Run or Install the Extension Press F5 in Visual Studio Code to launch an Extension Development Host and test your extension.

    OR

    • Open the Extensions view in VS Code
    • Click the ... (More Actions) menu
    • Select "Install from VSIX..."
    • Choose your .vsix file to install the extension manually
  6. Open a Pull Request against the main branch


License

MIT © Tharindu N. Madhusankha

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft