i cant find this anywhere? does anyone know how to save all?
Shortcut for save all?
Add this into your keymap file:
{ "keys": "ctrl+alt+shift+s"], "command": "save_all" }
(or whatever shortcut you would like)
[quote=“iamntz”]Add this into your keymap file:
{ "keys": "ctrl+alt+shift+s"], "command": "save_all" }
(or whatever shortcut you would like)[/quote]
Awesome thanks!
You’re missing an open bracket, it should be:
{ "keys": ["ctrl+alt+shift+s"], "command": "save_all" }
CTRL+ALT+S is vacant so this might be handier:
{ “keys”: [“ctrl+alt+s”], “command”: “save_all” }
Because that is the format adopted by Sublime Text for this (and many other) type of configurations.
Where a shortcut requires a combination of 2 or more keys, they are square bracketted after being joined by a plus character and then enclosed in quotes.
e.g. Shortcut for using CTRL-X for cutting selected text would have a config JSON entry like:
{ “keys”: [“ctrl+X”],
“command”: “cut” }
Actually, you will need to follow the full syntax including “args”: { “async”: true } },
Preferences > Key Bindings > then in the pane on the right add:
{ “keys”: [“ctrl+wathever+your+shortcut”], “command”: “save_all”, “args”: { “async”: true } },
Yes, spotted this lately.
The effect of ctrl+alt+s is just to shrink the viewport window. So there must be an underlying binding for this key shortcut, although it is not listed in Preferences > Key Bindings
So I edited the old keybinding entry to become:
{ “keys”: [“ctrl+alt+a”], “command”: “save_all”, “args”: { “async”: true } }
and it’s working again, albeit with a few seconds to execute all the edited files of the project.