3 ms·
In what sense is this missing? You can absolutely do this in vim so it must (by the principle of duality) also be present in emacs. Since he shows it in Intelli
by seanhunter 2y ago
In what sense is this missing? You can absolutely do this in vim so it must (by the principle of duality) also be present in emacs. Since he shows it in IntelliJ it’s obviously not missing from there so I’m assuming vscode has it also.
Automatic folding is something I almost always disable because I hate it when an editor tries to hide information from me. I strongly prefer to choose when I want things folded but by default to have things be as close as possible to the native text format just with syntax highlighting.
This is particularly true for PRs and diffs, where the details of implementation really matter and I would consider reviewing anything which was folded to be potentially extremely risky.
- ericyd 2y ago> I’m assuming vscode has it also. Sadly I believe this assumption is incorrect. VSCode supports folding, but not specifically method bodies (to my knowledge), and not by default (with or without a settings flag)
- seanhunter 2y agoWeird. OK well you can absolutely do this in vim should you ever want to ':help foldlevel' and ':help foldexpr' will tell you how. Also 'conceallevel', although whoever came up with that I hope they suffer endless torment. I really hate that feature with a passion.
- ballenf 2y agoAnd the folding will hide parameters if they flow to a second line, ime. Whether this is on by default or not is not the issue. It's just getting "smart" folding in vscode that would be the feature win.