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
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
Search for snappyFold.
Click Install to install the extension.
Usage
Add Folding Tags: Insert start and end tags in your files according to the language:
Python: # ##sectionName and # sectionName
JavaScript/TypeScript: // ##sectionName and // sectionName
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.