How can we save all files in (VSCode) like we do in Visual Studio

rashfmnb picture rashfmnb · May 3, 2016 · Viewed 67.8k times · Source

How can we save all the files in Visual Studio Code like we do in Visual Studio by pressing Ctrl+Shift+S ?

Answer

jessehouwing picture jessehouwing · May 4, 2016

Doesn't look like there is a shortcut binding to it.

Simplest way would be to use the menu accelerators: ALT+f followed by ALT+l.

To change your key binding edit the keyboard preferences.

enter image description here

Add the binding to the right half of the screen and then restart Code:

// Place your key bindings in this file to overwrite the defaults
[
    { 
      "key": "ctrl+shift+s", 
      "command": "workbench.action.files.saveAll" 
    }
]

enter image description here