vscode-dbml icon indicating copy to clipboard operation
vscode-dbml copied to clipboard

Collapse code regions and support for VSCode Outline

Open sevilnatas opened this issue 3 years ago • 1 comments

Not a bug but more of an feature request, it would be really great if your code support for DBML included the ability to collapse sections or regions of code. Collapse tables and even allow for the ability to use something like the '#Region' directive to specify chunks of code one might want to collapse.

Also, the vscode feature Outline would be nice to be able to use.

Just a suggestion/request, otherwise great plugin...

k.

sevilnatas avatar May 16 '22 19:05 sevilnatas

Hi @sevilnatas , thanks for the feature request!

This plugin already provides basic code folding. You should be able to fold any region that is surrounded by curly brackets. Regarding a #region directive, I'd rather not add this as it is not specific to DBML. A quick search shows there are already plugins that can achieve this (e.g. https://marketplace.visualstudio.com/items?itemName=maptz.regionfolder). Let me know if you had another use case in mind that these methods don't cover.

I agree, the outline feature would be handy. I need to research how to implement this before I can say anything else on it.

mattmeyers avatar May 18 '22 03:05 mattmeyers