StarlaneStudios / vscode-comment-anchors

⚓A Visual Studio Code extension that adds support for comment anchors 🔭
https://marketplace.visualstudio.com/items?itemName=ExodiusStudios.comment-anchors
MIT License
205 stars 32 forks source link

[FEATURE Request] Collapsible Anchors within the document #179

Open sancardriver opened 1 year ago

sancardriver commented 1 year ago

It would be incredibly handy to have collapsible sections within the document. Contents of the anchor between SECTION - 1 and !SECTION

<!-- SECTION - Geschlechtauswahl-->
<div class="tab d-none">
    <div class="mb-3">
        <label for="form-select-sex" class="form-label">Von welchem Geschlecht ist die Person?*</label>
        <select id="form-select-sex" class="form-select" aria-label="Geschlecht wählen" required>
            <option value="" selected>Geschlecht wählen</option>
            <option value="d">Divers</option>
            <option value="w">Weiblich</option>
            <option value="m">Männlich</option>
        </select>
        <div class="invalid-feedback">Bitte Auswahl treffen!</div>
    </div>
</div>
<!-- !SECTION -->

too

<!-- SECTION - Geschlechtauswahl-->...
<!-- !SECTION -->

Like you can collapse the content of a selector or tag in a CSS or HTML document for example.

macjuul commented 1 year ago

This is a feature we provided in the past, however since it caused issues with other extensions we retired this feature.

Since it's highly requested and others have asked for it as well I will consider giving it another attempt in the near future. I cannot guarantee it will work this time, however I'll update this issue if I do so.

Thaifid commented 1 year ago

I would love to see this as well! Even if you don't do it, thanks for considering it.