3 ms·
When I find myself in such a suboptimal situation, I tend to fall back to grep '^ *pub fn' <file> or equivalent for the language in question. A smarter a
by mst 5y ago
When I find myself in such a suboptimal situation, I tend to fall back to
grep '^ *pub fn' <file>
or equivalent for the language in question.
A smarter approach would probably be a code folding plugin for my editor, but I tend to keep my editing environment deliberately stupid so I can spend my cognitive complexity budget elsewhere.
(this is not to downplay your annoyance, just it seems worth mentioning that stupid problems often have stupid workarounds and I have lots of practice at being stupid ;)