
3 years, 8 months ago Good question however can you mark an answer? I think they deserve the credit. 3 years, 11 months ago see this link /questions/30067767/… 3 years, 10 months ago In a typescript file, Ctrl + K, 2 does exactly that for me. It's the best low-effort solution available that I've found.
#Visual studio code collapse all delete how to
I don't know if getting fine grained on which types to open/close is feasible, but the answer above ( /a/43710782/4544328 ) will show you how to close all, and then you could use the command to open an individual block as needed while editing code. When I hover an interface I can see it's definition so I don't need them open and taking up real estate. For example typescript interfaces at the top of files are annoying as hell. I wish there was a way to auto fold all blocks or specific types of code when you open the files. 4 years, 4 months ago Thanks! That makes more sense. the indentation foldingStrategy seems to be the default, as I haven't changed that myself, so you didn't notice anything. 4 years, 4 months ago I think the first line just shows all those icons instead of only showing them when you hover over the thin space near line numbers. This doesn't seems to accomplish closing or opening "all" blocks. I notice more - symbol buttons, but that's it. 4 years, 4 months ago I've tried messing with this several times. 4 years, 6 months ago Thanks with Cmd+k Cmd+S to open the short key setting.
#Visual studio code collapse all delete for mac
Maybe it's what you're looking for ? 4 years, 8 months ago Cmd + Shift + p for Mac users. 5 years, 5 months ago Added a 'fold level' shortcut. Often it relates to Objects, if/else statements too - and suddenly all that is being collapsed too. When you have TypeScript, the symbols don't just signify functions/methods.

5 years, 5 months ago Is there a way to make this work more intelligently. Where as in VS professional it just collapses methods.

This one collapses everything, including the class itself, methods,if-else conditions and loops inside the methods.

3 years, 2 months ago Related Topics visual-studio-code keyboard-shortcuts shortcut Comments 5 years, 7 months ago Unfortunately no.
