How To Make Editor Not Store Last Saved State?

Godot Version

4.3

Question

Hi, I have upgraded to 4.x from 3.5 for a few months now and noticed that the editor remembers every previous state such as unfolded folders in the file dock, script last saved karat position, inspector last saved position and unfolded state etc when starting the engine again.

In 3.5, these are always reset to a default state. Is there a setting that I need to toggle to turn off this state preservation? If so, I can’t find it in editor settings. Thank you to anyone who knows how to do this.

There is no setting to disable this globally, but a few settings exist to disable individual parts of restoring state on load:

  • Interface > Scene Tabs > Restore Scenes on Load
  • Interface > Multi Window > Restore Windows on Load
  • Text Editor > Behavior > Restore Scripts on Load
  • Editors > Shader Editor > Restore Shaders on Load

Additionally, you can disable inspector folding entirely using Interface > Inspector > Disable Folding (everything will be expanded at all times, except subresources themselves).

Out of curiosity, why are you looking to disable this feature?

Thank you for your help. I have those sections already disabled, so when I load a project, the things that remain in a past state are the file system dock partially folded state, the script last clicked cursor position (when I open the script), and the inspector partially folded state (which does have its use).

I am just used to the way 3.5 always resets to the completely folded file system and scripts always opening at the very top. Now when I open a 4.x project and see unfolded folders or mid-section scripts, it makes me wonder if I missed something or didn’t finish a task the last time I closed it.

I can see the current state saving being useful for many people. So please don’t mind me. I will just manually adjust the files before I save them and close.

Thanks again.