nazmulidris / vscode-better-folding

VS Code extension to improve your folding experience

Home Page:https://marketplace.visualstudio.com/items?itemName=MohammadBaqer.better-folding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icon

Better Folding - VSCode Extension

Better Folding

Better Folding provides many commonly requested folding-related features all together in one extension.


Better Folding Extension Preview

Disclaimer

This is the first release of the extension, so it is not fully battle tested yet. If you encounter any issue or would like to contribute, please visit the GitHub page.

Features

Folding Closing Brackets

Better Folding Extension Folding Closing Brackets Feature Preview

Showing Folded Lines Count

Better Folding Extension Showing Folded Lines Count Feature Preview

Showing Folded Brackets

Better Folding Extension Showing Folded Brackets Feature Preview

Showing Only The Region Description

Better Folding Extension Showing Only The Region Description Feature Preview

Show only function parameters names in folded function parentheses

Better Folding Extension Function Params Folding Preview

Folding closing tags (currently JSX and TSX, HTML next)

Better Folding Extension Folding Closing Tags Preview

Show objects preview

Better Folding Extension Folding Showing Object Previews Preview

Zen Folding

Better Folding Extension Zen Folding Preview

Planned Features

Show function content for short functions

Based on microsoft/vscode#76396

Supported Languages:

Most brackets-based languages: JavaScript, TypeScript, C, C#, C++, Java, Kotlin, PHP, Go (Golang), Dart, Rust, Swift, CSS, LESS, SCSS and more...

XML-based languages: JSX and TSX.

Work in progress: HTML.

Known Issues

  • When switching between tabs, the folding ranges take a second to update. This is an issue with VS Code itself. Waiting for a fix.
  • If a folding range is at the end of the file, sometimes it would fold the start line while scrolling. Again, this is an issue with VS Code API, will submit an issue to their repo soon.
  • The cursor can hide behind the folded text. Working on a fix.

Changelog

See the project's changelog here.

Big thanks to these source codes

Bracket-Pair-Colorizer-2 (by CoenraadS)

vscode-blockman (by leodevbro)

vscode-inline-fold (by moalamri)

vscode-explicit-folding (by zokugun)

About

VS Code extension to improve your folding experience

https://marketplace.visualstudio.com/items?itemName=MohammadBaqer.better-folding

License:MIT License


Languages

Language:TypeScript 100.0%