+10
Completed

Code folding GUI access

Werchter 6 years ago • updated by Jon Skinner 6 years ago 7
Code folding/unfolding GUI access in addition to the keyboard shortcuts.
For example, '+'/'-' icons in the gutter to fold/unfold.

Answer

Answer
Completed
Added in 2139
+1

I strongly believe it is a good idea to use the indentation guides as GUI folding elements instead of taking up space in the gutter.

It is also easier to perceive the block of code which is being fold.

I like this idea, but what would happen if the contents of the function/statment/etc. wasn't indented? eg.


There should probably be an option to show indentation controls on the gutter for people who use messy code style.. or which don't like indentation guides..

What does a shortcut for folding/unfolding have to do with messy code or identation guides?
The identation guids are already there, as well as code folding (in Sublime Text 2 dev builds).

What I mean is a gui control to fold/unfold, in addition to the existing keybord shortcut.
I think the idea was to have the clickable fold/unfold icons appear on the indentation guides rather than in the gutter. I may have misunderstood though.

You understood correctly :) 

We are discussing the design of the GUI

Answer
Completed
Added in 2139