Sublime Forum

macOS Window Restoration to Correct "Spaces" on Restart

#1

Apple provides APIs that enable Applications to restore to the desktop “Spaces” [https://www.wikipedia.org/wiki/Spaces_(software)] they were on prior to reboot. All official Apple applications (Terminal, Safari, and TextEdit are a few common examples) support this feature.

For those of us who make heavy use of the Spaces virtual desktop feature, this feature is a massive boon (time saver). Supporting this feature appears to further provide support for restoring to separate screens [https://forum.sublimetext.com/t/window-configuration-is-not-remembered-in-macos-10-9/12728].

While I’ve never personally implemented the feature, an Apple tech support specialist pointed me to this documentation and the “Handling Window Restoration” functions of the NSWindow class.

Supporting this feature for macOS versions of Sublime Text would be sublime.

4 Likes

#2

I would love this feature. For me, this is the only major missing feature from Sublime. I have ten virtual desktop (one for each project) and at least same amount of Sublime instances, and it kills me to move all Sublime windows to their virtual desktops after a reboot.

I could pay e.g. 10 EUR for this feature, just for saved time.

2 Likes

#3

I also would love this feature. I often have one project per space in macOS and rebooting the system or simply restarting Sublime Text means I have to put all my projects back in their proper space.

1 Like

#4

please, please, please implement this. my macbook crashes randomly (separate issue, but still) and it’s such a pain to restore my projects back to their proper spaces. apple applications go back to their proper spaces by default, and it’s such great UX.

sublime text already restores all my windows, even the unsaved tabs (which is awesome!). if it could put my windows back where they belong, it would be even better!

1 Like

#5

This is still an issue on Sublime Text 4. Any chance we can get this bumped up?

0 Likes

#6

This feature was part of the public release of ST4: https://www.sublimetext.com/blog/articles/sublime-text-4

  • Windows will remember their Virtual Desktop/Space/Workspace, controlled by the remember_workspace setting
0 Likes

#7

This feature was working for me in a previous version of Mac OS ( currently Sequioa 15.5) and sublime (build 4200). In the past 3 months I’m getting the window in all desktops both on the powerbook pro built im screen and the external monitor.

2 Likes

#8

This is happening to me too. Quit Sublime, re-launch it, and all windows show up in the current workspace, not their original monitors or positions.

remember_workspace is true

I also tried enabling remember_layout, but that didn’t seem to fix it.

macOS 15.6.1

0 Likes

#9

See also:


Looking at the dev builds:

There is:

  • Build 4205 (23 Apr 2026)

And some of the line items in the changes are:

  • Mac: The minimum required version is now macOS 10.13

  • Mac: Fixed issues restoring minimized windows

That doesn’t sound like a direct fix at face value; but I wonder if it might improve things at all?

I haven’t tried it (as it requires having an active licence to use dev builds), but here’s the download link for it if anyone has one and was willing to check/test:

0 Likes