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

Anyway to fold / collapse just for organization purpose inside a uBO filter with VscodeAdblackSyntax ? #139

Open
oeloo opened this issue Oct 25, 2024 · 2 comments
Assignees

Comments

@oeloo
Copy link

oeloo commented Oct 25, 2024

Hi, We are editing uBO filters in VS Code using VscodeAdblackSyntax. Can we use a symbol or a formatting to fold/collapse sections for presentation clarity?

Currently, we are using this presentation format:

!=== : as Heading 1 ===
! : as Heading 2
!!: as Heading 3

Here is an example:
image
It is not ideal because there is no folding / collapse possibility.

VscodeAdblackSyntax offers folding for pre-parsing directives like !#if / !#endif
image
but pre-parsing directives are for coding purposes, not just display purposes. Is there a better way than writting this:
image

@scripthunter7
Copy link
Member

Currently, folding is only available for preprocessor directives, and there is no option to configure custom folding in the extension.

Grouping and categorizing rules are planned features, and I think we don’t anticipate implementing these in the near future.

Our filter team uses the Comment Anchors extension for categorization: Comment Anchors on Visual Studio Marketplace.

@oeloo
Copy link
Author

oeloo commented Dec 5, 2024

Could we add the VS Code built-in code folding feature (#region / #endregion) for AdBlock filter files?

AutoHotKey Plus Plus extension for VS Code is providing the VS Code folding #region / #endregion for .ahk files. This extension has the same purpose as VscodeAdblackSyntax for Adblock filter files but for AutoHotKey files.

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

No branches or pull requests

4 participants