thehogfather / brackets-code-folding

Code folding extension for brackets IDE
134 stars 42 forks source link

Feature Request: Menu items under edit edit menu and/or context menu #33

Closed brennanMKE closed 10 years ago

brennanMKE commented 10 years ago

I am not very good at remembering all of the hotkeys so I like having help from the menu. I see there are options to fold and collapse all folds or within the current context. I find that folding with the current context likely works as intended but I would like to have it also folder blocks under the current context. One example is a JavaScript object which holds onto many functions which could be conveniently collapsed to just show the name for each function. That is how I like to organize code. Currently I manually go to each function and collapse it. It would be great collapse all folds in the current context where it wraps folds under the context not the block it is currently inside.

Does this make sense?

thehogfather commented 10 years ago

If I understand correctly, that is already implemented (albeit with a shortcut key). All you have to do is hold down the Alt key when you collapse a code region and it will collapse all nested region within it. This was if you reopen that region (without holding down Alt), then all the "sub-regions" are still closed. If you hold down Alt while expanding a code region, it expands all "sub-regions".

Hope that helps a little.

brennanMKE commented 10 years ago

I did not know it could do that. It would be great if these options could be added to the menu as well.