When I close Sublime, it will save the location of my window fine (maximized), but when I press ctrl+shift+N
to open a new window, it’s not maximized, small, and spanning multiple monitors. I know there are shortcuts to position the window but I’d rather not have to every time, especially when it’s 4 extra steps (win+right
x 3 then win+up
)
How can I force new windows to be maximized?
You you’re on Win 7+ you can press win+up to maximize window. It’s an extra step, nonetheless, but easier than moving the mouse
I had forget that. Now I remembered, I just created a AutoHotKey script to maximize my Octave’s Graphics.
With this you can maximize the Sublime Text Settings window when it is opened automatically.
This script is looking for a window’s title which starts with Preferences.sublime-settings
:
#persistent
SetTimer, check_for_sublime_settings_window, 1000
SetTitleMatchMode 1
Return
check_for_sublime_settings_window:
{
WinWait, Preferences.sublime-settings
WinMaximize
SetTimer, check_for_sublime_settings_window, 1000
}
Return
References:
as @kingkeith said, it’s not possible to make sublime text remember the fullscreen setting. But, I posted a little trick that allows you to make it remember it’s size (not the position though).
For the position, I’m guessing that it matters because you have several screens. It seems logic (at least to me) that your text editor is on the main screen. And a window not explictely placed will be shown on the main screen, so you just have to define it (if you’re on window, I can help you find where it is).
Matt
This preference will tell Sublime Text to not only remember full-screen, but to open the same size as when it was closed:
"remember_full_screen": true,
Tested on MacOS.
I was able to force new windows to maximize with this following approach
- Put this on the
Preferences.sublime-preferences
"remember_full_screen": true
-
Open the sublime
-
Resize MANUALLY the sublime window to the size you want (maximum height and width)
After I followed this steps, now everytime I open the sublime (even with subl
), the sublime opens on the last window that I MANUALLY resized it.
I can’t reproduce that on Linux - adding "remember_fullscreen": true
to settings and then restarting restores full-screen windows without having to resize them first. What platform are you using and what version of ST?