The post above is still the correct way to do this. In order to bind a key to do something you need to know the command, and if you don’t know the command BUT you know of a way to take that action by other means, then you can get Sublime to tell you.
Since Project: Close Project
appears in the menu, there’s way to take the action. So, View > Show Console
will open the sublime console, and inside of it sublime.log_commands(True)
will turn on command logging, making Sublime tell you every command that it’s executing.
If you do that and then choose the menu item, it will log the close_workspace
command, indicating that’s what you want in your key binds.
So you just need to bind a key to close_workspace
and you should be good to go; the menu will even show you the binding you chose after you add one.