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

Feature Request: Fold and Unfold for HTML Tags in .heex files #24

Open
daniel-leal opened this issue Feb 23, 2024 · 4 comments · May be fixed by #31
Open

Feature Request: Fold and Unfold for HTML Tags in .heex files #24

daniel-leal opened this issue Feb 23, 2024 · 4 comments · May be fixed by #31
Labels
help wanted Extra attention is needed

Comments

@daniel-leal
Copy link

daniel-leal commented Feb 23, 2024

Feature Request

Overview:

I would like to propose the addition of a feature that allows folding and unfolding of HTML tags within .heex files. Currently, the vscode-phoenix extension provides excellent support for working with Phoenix framework's .heex files, but the ability to collapse and expand HTML tags would significantly enhance the development experience.

Details:

Feature Description:
Add the ability to fold and unfold HTML tags in .heex files.
The folding should work specifically for HTML tags, making it easier to navigate and manage the code.

Benefits:

Improved code readability and organization.
Streamlined navigation within .heex files containing extensive HTML markup.
Enhanced developer productivity.

Example of how it should be:

Screen.Recording.2024-02-23.at.09.30.52.mov
@samharnack
Copy link

I was able to resolve this by adding this to my settings:

{
  "[phoenix-heex]": {
    "editor.defaultFoldingRangeProvider": "vscode.html-language-features"
  }
}

@chrismccord chrismccord added the help wanted Extra attention is needed label Mar 26, 2024
@glhrmv
Copy link

glhrmv commented Jun 1, 2024

Is there a way to plug that into the extension's settings itself so that users don't have to do that manually on their own settings?

@lukaszsamson
Copy link

Is there a way to plug that into the extension's settings itself so that users don't have to do that manually on their own settings?

It should be possible. Extensions can contribute default settings

@quantuminformation
Copy link

is this extension abandoned?

SteffenDE added a commit to SteffenDE/vscode-phoenix that referenced this issue Dec 8, 2024
@SteffenDE SteffenDE linked a pull request Dec 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants