Vscode: [folding] Folding HTML tags should hide the closing tag.

Created on 11 Apr 2017  路  14Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.11.1
  • OS Version: Windows

instead of showing:
< div ... >
< /div>

just show
< div ...>

when folded

editor-folding feature-request

Most helpful comment

Why was this made a thing?? This makes it a huge pain to fold a tag and then highlight it to copy or remove it. Is there a way to disable this?

All 14 comments

Prerequisite for this would be language aware folding #3422

6 years later, Any news on this being an option?

Nope. They won't do that, otherwise it will be no point of use their Visual Studio 2017.

Jan 2019 and it still shows the ending html tag :(

50840 is required to implement this

Any news about this feature ?

Why was this made a thing?? This makes it a huge pain to fold a tag and then highlight it to copy or remove it. Is there a way to disable this?

Why was this made a thing?? This makes it a huge pain to fold a tag and then highlight it to copy or remove it. Is there a way to disable this?

in your settings.json

"[javascript]": { "editor.foldingStrategy": "indentation" },

in your settings.json

"[javascript]": { "editor.foldingStrategy": "indentation" },

@sheyooo This did nothing regarding the issue for me.

in your settings.json

"[javascript]": { "editor.foldingStrategy": "indentation" },

@sheyooo This did nothing regarding this issue for me.

Make sure you are setting it for the right language, in my example I used JavaScript, if you want this for another language replace JavaScript

in your settings.json

"[javascript]": { "editor.foldingStrategy": "indentation" },

@sheyooo This did nothing regarding this issue for me.

Make sure you are setting it for the right language, in my example I used JavaScript, if you want this for another language replace JavaScript

THANK YOU!!! Worked like a charm.

in your settings.json

"[javascript]": { "editor.foldingStrategy": "indentation" },

@sheyooo This did nothing regarding this issue for me.

Make sure you are setting it for the right language, in my example I used JavaScript, if you want this for another language replace JavaScript

"[html]": { "editor.foldingStrategy": "indentation" }
@sheyooo still no effect for HTML. :(

Why was this made a thing?? This makes it a huge pain to fold a tag and then highlight it to copy or remove it. Is there a way to disable this?

in your settings.json

"[javascript]": { "editor.foldingStrategy": "indentation" },

What is the right value to put incase I am trying to target tsx? I tried typescript, yet it is not working.

Why was this made a thing?? This makes it a huge pain to fold a tag and then highlight it to copy or remove it. Is there a way to disable this?

in your settings.json
"[javascript]": { "editor.foldingStrategy": "indentation" },

What is the right value to put incase I am trying to target tsx? I tried typescript, yet it is not working.

Interesting, so I do need to put it as typescriptreact.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omidgolparvar picture omidgolparvar  路  3Comments

biij5698 picture biij5698  路  3Comments

trstringer picture trstringer  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments

chrisdias picture chrisdias  路  3Comments