25
Is The Fold Method Bodies by Default a Missing IDE Feature ?
(matklad.github.io)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Vim sort of already has this feature via
set foldmethod=syntax
. This doesn't work exactly like the author suggests but you can also useset foldmethod=expr
and then setfoldexpr
to a more complicated expression to only get nested function/method bodies, via tree sitter for example if you're on neovim.