Can I "spacing" reset?

Is there a way to reset “spacing” all at once, or can the open “Tree” be closed at once?

Click on the left icon beside the “0”

Please look at this, when it becomes like this, I don’t know what the correct margin is, so I wondered if I could reset the settings once.