vscode-code-outline icon indicating copy to clipboard operation
vscode-code-outline copied to clipboard

Any way to collapse/expand all nodes?

Open fenying opened this issue 7 years ago • 3 comments

Ummm, I see there is only a REFRESH button.

Shall we add a button to collapse or expand all nodes?

fenying avatar Nov 14 '17 06:11 fenying

Do you think those would be useful? I've never found myself wanting all tree nodes expanded.

patrys avatar Nov 14 '17 10:11 patrys

Actually, I believe it would be better if the treeview can be sticky at the right side of editor, so that we coud have a big enough view of outline. However it couldn't be achieve yet due to the limitation of vscode API.

Thus the outline tree sharing view with file tree, seems too small for me. I have to collapse some nodes sometimes. (I set them auto-expand by default)

And another relevant problem is that, when I change a file in editor, all the collapsed nodes will be expanded, instead of just expanding the one I've changed.

fenying avatar Nov 15 '17 01:11 fenying

Collapse all is useful for me.

roshad avatar Jun 30 '18 15:06 roshad