Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SnappyFoldNew to Visual Studio Code? Get it now.
SnappyFold

SnappyFold

tamvan#T4

|
15 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

snappyFold

snappyFold is a Visual Studio Code extension that provides dynamic and customizable folding regions based on start and end tags in various file types, including JavaScript, TypeScript, and Python. With snappyFold, you can easily manage and navigate large files by folding sections using flexible and user-defined tags.

Features

  • Dynamic Folding Markers: Supports an arbitrary number of folding markers based on dynamic tags.
  • Language-Specific Markers:
    • Python: Uses # ##name for start tags and # name for end tags.
    • JavaScript/TypeScript: Uses // ##name for start tags and // name for end tags.
  • Nested and Overlapping Sections: Handles overlapping and nested folding regions correctly.

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
  3. Search for snappyFold.
  4. Click Install to install the extension.

Usage

  1. Add Folding Tags: Insert start and end tags in your files according to the language:

    • Python: # ##sectionName and # sectionName
    • JavaScript/TypeScript: // ##sectionName and // sectionName
  2. Fold Sections: Use the default VS Code folding commands (Ctrl + K Ctrl + 0 to fold all, Ctrl + K Ctrl + J to unfold all) or the folding controls in the editor gutter to manage folding regions.

Example Usage

Python

# ##section1
def function_one():
    print("Foldable section 1")
# section1

# ##section2
def function_two():
    print("Foldable section 2")
# section2
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft