Sublime Forum

"Close All Files" command

#1

Hi,

I want to add an entry to my Default (OSX).sublime-keymap file, to close all files when I hit Cmd-Ctrl-W.

{ "keys": "super+ctrl+w"], "command": "closeAll" }

I’ve tried various combinations but haven’t found the correct command name. What is it?

I can find the command I need in the Command Palette - “File: Close All”. Is there a way to view the “code” versions of commands in the palette?

Thanks

Jon

0 Likes

#2

Look for “Main.sublime-menu” in the Packages/Default directory. You want the “close_all” command.

0 Likes

#3

I personally create a project (.sublime-project) inside Default so I can switch easily to that directory and look up stuff.

0 Likes

#4

Thanks guillermooo, that worked perfectly (after restarting ST2). Thanks also for explaining how I can look up commands next time I need one.

Jon

0 Likes