This particular feature is something that's happening as a result of your using MacOS (i.e. it's not something that Sublime does natively; the OS is doing it on your behalf).
In the general case most MacOS applications should have native menu items to combine windows together like this at the user's request in combination with the setting in the Prefer tabs when opening documents area of the system preferences.Dock
Sublime doesn't support the native menu items for this (yet), so it relies solely on the setting; having it set to (and also Always, but this tends to cause problems with Sublime) makes MacOS automatically "tab" new windows. Setting that setting to In Full Screen Only stops this from happening.Manually
This is also somewhat controlled by the Theme that you're using in Sublime. For MacOS, a Sublime theme can theme the menu bar of the window to match the overall application theme. Behind the scenes, this makes Sublime declare to MacOS that it wants to be in charge of displaying it's own window, which stops the system from automatically combining windows together.
An example of a theme that does this is the theme that ships with Sublime. Adaptive
The reason it doesn't work is that you have the wrong alias. Here's the correct one for Sublime Text 3:
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
This is an alias that Sublime Text specifically provides for macOS. It will not block execution and—by default—open files in a tab next to the ones that are already open.
If you want to know more about why your alias didn't work, read on.
Application packages in OS X have an suffix, but when launched, they actually launch a binary that's specified in .app in said package. This is the binary your alias links to, in the Info.plist folder. MacOS
Running an application from the GUI or through Launch Services (e.g. via or osascript) makes OS X open that binary, but at the same time ensure it's only launching one instance of that app. When you call the binary directly, you bypass this restriction and launch another instance of the application—unless the application has measures for preventing two instances from being launched, which normally OS X handles. open
Also, as a side effect, launching the binary will block the terminal execution until you exit the program or suspend it to the background. Using the built-in from Sublime Text returns control to your terminal, as it actually uses a Launch Services call to open the Sublime package instead of addressing the binary in subl only.MacOS
Since you're basically launching a second Sublime Text instance, it'll show you the files it previously had opened, because that's its default behavior.
Follow the fix here: https://github.com/SublimeText/LaTeXTools/issues/1530
In short, Go into the LaTeX Tools settings (Preferences → Package Settings → LaTeXTools → Settings – User) Find the setting "windows" → "sublime_exectuable" and set it to "subl.exe"
Go to Preferences -> Settings-User and add there: "update_check": false
EDIT :
If it's not working then add this line in your host file127.0.0.1 www.sublimetext.com
File Location
Windows : c:/windows/system32/drivers/etc/hosts
Linux : /etc/hosts