Whenever I use my “Open with Sublime” context menu (shortcut menu) to open a folder with Sublime Text, it has this annoying habit of opening a previous window behind the new one. There’s an easy fix for this. Edit your User Settings (Preferences > Settings > User) and add the following values:
{
"hot_exit": false,
"remember_open_files": false
}
This is a quick screenshot of the problem this fixes:
Once these settings are in place, the only window to open will be the window you want.
On a related note, here is the script to open any folder or file using the shortcut menu in Windows with Sublime Text 3:
Open with Sublime v3.bat (zipped file)