Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I have a collapse-all structure tool window by default in Pycharm?

Tags:

pycharm

enter image description hereeverytime I open or save a file in pycharm,the structure tool window on the left will refresh and expand all my class, but I dont't want it.

I can't find any setting to change this behavior,it really bothers me when I am working

like image 412
nuage Avatar asked Oct 19 '22 11:10

nuage


2 Answers

I use PHPStorm not PyCharm so this might be slightly different but if you click the 'collapse all'(ctrl + numpad-) button at the top of the tool-window to collapse everything as I presume you usually do on start up and then go to: Window | Store Current Layout as Default

That should save it as default so on start up it now looks like the current layout

like image 103
Ben Rhys-Lewis Avatar answered Oct 21 '22 21:10

Ben Rhys-Lewis


Collapse all: shift + command + -

Expand all: shift + command + +

like image 40
Sophie Tagar Avatar answered Oct 21 '22 21:10

Sophie Tagar