zokugun / vscode-explicit-folding

Customize your Folding for Visual Studio Code
MIT License
99 stars 14 forks source link

Is it possible to fold inline classes? #29

Closed sawanm9000 closed 3 years ago

sawanm9000 commented 3 years ago

I'd like to do this:

autofoldclasses

I have the following in my settings.json but it doesn't work.

"folding": {
    "html": {
        "begin": "class=\"",
        "end": "\""
    },
    "vue": {
        "begin": "class=\"",
        "end": "\""
    }
}
daiyam commented 3 years ago

@utopianknight Single-line foldings aren't supported by Visual Studio Code and so by this extension.

sawanm9000 commented 3 years ago

I can fold this:

<div class="
    my-custom-class
"></div>

So can't we have something that also works like an auto-formatter?

daiyam commented 3 years ago

@utopianknight This extension is event aware of the syntax of a language, it's just text. For VSCode, a folding needs to be multi-lines.