AdguardTeam / VscodeAdblockSyntax

Comprehensive extension to manage Adblock Syntax in VSCode: syntax highlighter, linter and much more. Available on the VSCode Marketplace.
https://marketplace.visualstudio.com/items?itemName=adguard.adblock
MIT License
75 stars 8 forks source link

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

Open oeloo opened 2 weeks ago

oeloo commented 2 weeks ago

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 commented 2 days ago

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.