Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapse code regions and support for VSCode Outline #18

Open
sevilnatas opened this issue May 16, 2022 · 1 comment
Open

Collapse code regions and support for VSCode Outline #18

sevilnatas opened this issue May 16, 2022 · 1 comment

Comments

@sevilnatas
Copy link

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.

@mattmeyers
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants