Feature request: ability to fold jsdoc/phpdoc with function body

Maybe this is already possible and I just don’t know how.

Anyway, here’s my problem:

When I have folded all my functions, this is what I would like:

function a(){
function b(){
function c(){

What I get is this:

/**
 * bla bla
 * bla bla
 * bla bla
 * bla bla
 * bla bla
 /
function a(){
/
*
 * bla bla
 * bla bla
 * bla bla
 * bla bla
 * bla bla
 /
function b(){
/
*
 * bla bla
 * bla bla
 * bla bla
 * bla bla
 * bla bla
 */
function c(){

With some extra clicks I get this:

/**
function a(){
/**
function b(){
/**
function c(){

Which is close, but not really there. Too much space is taken, plus there’s the extra clicks. I would very much like to have this as an option in the settings. Something like “Fold/unfold jsdoc with function”

This is not the end of the world in any way.

But since I wished for world peace and didn’t get it, I thought maybe this would be more realistic.

Please. Pretty please. Think of the children.

:slight_smile:

Folding the start line itself might be a bit complicated, but having a collapse/expand all function makes sense to me.