Sublime Forum

Making program open/create documents in new window rather then new tab?

#1

Is there a way to do this on Windows? I’ve seen some people talking about it as an option on Apple OS’s, but I’m wondering if it is supported for Windows yet

I’m just wanting a alternative for default windows Notepad that supports automatic restoration of unsaved documents: EX after a program or system crash, reopening the program reopens all the previously active documents, including unsaved ones

This, Notepad++, pspad, etc all support that, but also seem designed around documents being opened in tabs rather then new windows, which I dislike. Sublime at least allows you to easily open additional windows or instances by starting the program a second, third, etc time, but I can’t figure out how to set it so File > New File opens the file in a new window rather then a new tab, and opening an existing file in a folder with the program opens it in a new window rather then a new tab

If Sublime doesn’t support this, is there any other software with automatic restore that does?

EDIT:

It seems that I can just drag and drop a tab out of one window into a random part of the screen and that quickly moves that document to a new window, so even if it’s a little less convenient then is ideal, I can use/do that

Is there a way to just, disable tab functionality entirely? If so that would be even better, that way I can also just disable the tab bar to save that UI spacwe and have everything always use new windows

0 Likes

#2

See the "open_files_in_new_window" setting.

0 Likes

#3

I apologize since this is probably a stupid question, but where is the settings file?

I get that it’s like a config file I need to edit rather then an actual GUI, but the settings documentation in the program itself says the file is located in Packages/User/Preferences.sublime-settings, and I’m not sure where the “Packages” directory is

There’s a “Packages” folder in Program files > Sublime Text, but there’s no “User” folder within that.

Also, is there a setting so a new file with ctrl+N/the file dropdown in the application also opens a new window? Judging by this: Simple toggle to show/hide line numbers post, it actually seems like it’s possible to add in new menu buttons, so maybe it’s possible for me to just add a new “New File in New Window” menu button, somehow?

And so that zooming in/out with ctrl+ the scroll wheel is done on a per window basis rather then applies to every open window? I see from googling that I can do stuff like view.settings().set("font_size", 16) in the command pane to force a the text on a specific window to a given size, but this is obviously a lot less convenient then simply using the mouse scroll wheel

0 Likes

#4
  1. Open Command Palette via ctrl+shift+p
  2. Search for Preferences: Settings and run it
  3. Add desired setting(s) in the right view. (The left one contains available defaults)

Maybe also install PackageDev to get better syntax highlighting and auto completion support.

a new “New File in New Window” menu button, somehow?

Just call File > New Window or ctrl+shift+n.

0 Likes