Create regions for collapse

How can i create regions for collapse a group of tables?

Hi David,

You can use the following syntax to group tables into collapsible Table Group.

Thanks.

Hi,
I would like to collapse the tables on diagram
I’m asking something like the image
I have this on VSCode to collapse all code to simplify

When press F1 we have this options to fold the regions

Thanks

Hello David,

We’ve taken note of your suggestion and will consider supporting code regions for the text editor in the future.

Thanks.

Hi @David_Mesa ,

We have just supported folding regions syntax in dbdiagram. You can create a folding region by using this syntax:

// #region
Table a {
  id int
}

Table b {
  id int
}
// #endregion

Example:
folding-regions

Please try out the feature. Thank you very much.

Regards.

1 Like

It’s working
I didn’t found on manual this expecification
Thanks