Re:Write code. Not too much. Mostly functions.
by wruza on Tuesday December 22, 2020 @12:06AM
(#25503079)
Still lacking good tools in our own toolbox. If ides could expand function calls inline (not a header in a glassbox, but right in code), both worlds could benefit from that. Expand all calls depth 2 and there is a detailed picture. Collapse branches at edit-time based on passed flags/literals and there is your specific path.
[ Parent
| on HN ]
Re:Write code. Not too much. Mostly functions.
by IggleSniggle on Tuesday December 22, 2020 @10:31AM
(#25507154)
Hmm. There’s a vim sequence to accomplish this that you could macro. But even so, don’t most IDEs give you somewhat more than a glassbox header? I’m almost certain I’ve seen people scrolling and even editing code in the “glassbox” preview pane in VSCode.
Re:Write code. Not too much. Mostly functions.
by wruza on Tuesday December 22, 2020 @10:49AM
(#25507428)
Afair, it doesn’t inline and overlaps with the code behind it. If that is not true, it may be closer to it, but my experiments somehow failed to show its benefits over “just open to the right pane”. Maybe I should check its config thoroughly. As a vim user, I’m interested in a method you described, is it handmade :read/%v%yp-like thing or an existing plugin?