3 ms·
Really? That's my comment style, so I'd be affected by that if I ever used code-folding. I don't want this to come across as 'blame-the-user', I'm just genuinel
by oneeyedpigeon 11y ago
Really? That's my comment style, so I'd be affected by that if I ever used code-folding. I don't want this to come across as 'blame-the-user', I'm just genuinely interested - what does code-folding help you with?
- wingerlang 11y agoI regularly fold all methods to get an overview of the class and its flow. Or if I quickly want to scan the class to maybe find something. Or even just to go into "zen mode" to feel that I can focus in on one method while the other ones are "gone".
- PhasmaFelis 11y agoAt the time, I was attempting to modify a very large, nonbranching clusterfuck of a function, and there wasn't time to properly refactor it, so I wanted to examine each chunk and then fold it away once I'd determined that it wasn't related to what I was looking for. (And the code I was looking for turned out to be scattered across three different parts of the greater monolith, so I was glad I could fold away the bits in between.) But yeah, generally it helps me get a high-level overview of the code without getting lost in the details.