jvolkman / intellij-protobuf-editor

Protocol Buffers for IntelliJ-based IDEs
Apache License 2.0
122 stars 15 forks source link

Add collapse option to Structure view #14

Closed aaronrandolph closed 4 years ago

aaronrandolph commented 4 years ago

In the Structure view, can you add an option to the toolbar to Collapse and Expand for all?

Currently, when I open a .proto, it shows all messages expanded by default with no way to collapse them (that I found) to just a list of the messages. This makes navigation harder as we have enums with lots of values, so it's a lot of scrolling to find the message I need. I also more often (always) need to find a specific message, not see the fields of a message.

jvolkman commented 4 years ago

The structure view could certainly use some love. I haven't looked at it for a long time.

However, I think collapse and expand all are built-in operations and not something the plugin provides. Have you tried the buttons at the top left of the view?

image

aaronrandolph commented 4 years ago

You ever look really hard for something, and keep looking right past thing you need? You are correct that's what I needed. So used to them being on the left in other tool tabs that I looked past the buttons on the right even when I went to the gear config menu...