Is there a way to close all tabs in one go in Sublime Text, but leave the window with the current project open? It is really annoying when I just want to close all open file and start the new task I have to Cmd-W
them one by one. If I do Cmd-Opt-W
it will close all tabs and the current project.
相关问题
- How to run code in Sublime text 2 python
- QML Keyboard Shortcuts are interfering with Key On
- How do you configure MinGW with Sublime Text 3?
- Shortcut for extract local variable in Visual Stud
- ProcessCmdKey analog in WPF
相关文章
- NSMenuItem KeyEquivalent “ ”(space) bug
- How can I convert a Bundle to a PersistableBundle?
- Reset bash history search position
- How do I use a shortcut to comment out code automa
- Visual Studio 2012 debug tests keyboard shortcut
- eclipse key bindings everywhere
- Moving focus to next tab group in Visual Studio 20
- Shortcut to close all opened files in IntelliJ
Thanks to Alex, it turned out kind of simple, Preferences > Key Bindings > User:
{ "keys": ["super+shift+w"], "command": "close_all" }
No need to restart Sublime, it works right away. And what's even better, no need to get used new shortcuts, you can still close Sublime window with
Cmd-W
after all tabs are gone.The Coolest way is :
File - > Close All Tabs
There's an option in the file menu, but it has no shortcut:
Edit - change user settings:
kay, open Preferences -> Key Bindings - User and paste the following between the []:
{ "keys": ["ctrl+alt+shift+w"], "command": "close_all" }
then use Ctrl, Alt, Shift and w to close all tabs.
You'll have to restart Sublime first.
Here is what I have set up on Mac Sublime Text 3
Now, hitting "Command+Shift+W" will close all of your open tabs. Hitting "Command+W" closes current tab only. This is sort of consistent with Mac shortcuts for other app windows.
Go to Preferences>Key Bindings - User> and add following line.
Now when you hit cmd+w, only file gonna close not the whole window because you target "close_file".
By default, closing all tabs don't close the window, but beware: The last build 3059 (December 13, 2013) of Sublime Text 3 does now include:
It is managed by this setting:
In that same Sublime Text 3 build 3059, you also have the setting:
Combined with "File -> Close All Files", that can help starting quickly in a new file.