Perhaps this can be controlled via the symbols page?
Currently, if you long press a symbol you’re given the options to copy and go to line, but maybe another two options could be “fold symbol”/“unfold symbol” and “fold all except symbol”?
This, in my mind, provides an explicit action to tie the work of code folding to (as opposed to implicitly doing it after keystrokes) that possibly reuses existing functionality associated with the symbol page, as well as preventing the gutter from taking up anymore UI space in the editor and isolating the functionality from text selection in the editor.
Might be a bit tedious compared to code folding on desktop editors, but maybe if the first line of a folded symbol remains visible, selecting it could potentially unfold the symbol as a shortcut?
Perhaps this can be controlled via the symbols page?
Currently, if you long press a symbol you’re given the options to copy and go to line, but maybe another two options could be “fold symbol”/“unfold symbol” and “fold all except symbol”?
This, in my mind, provides an explicit action to tie the work of code folding to (as opposed to implicitly doing it after keystrokes) that possibly reuses existing functionality associated with the symbol page, as well as preventing the gutter from taking up anymore UI space in the editor and isolating the functionality from text selection in the editor.
Might be a bit tedious compared to code folding on desktop editors, but maybe if the first line of a folded symbol remains visible, selecting it could potentially unfold the symbol as a shortcut?