By Default VSCode only saves the current file when hitting Ctrl+S. Over time, I got used to Ctrl+S saving all the modified files in the project. Here is how to setup the same behavior in VSCode.

Go to

1
File > Preferences > Keyboard Shortcuts

In the keybindings.json where you can put your overrides, use the following:

1
2
3
4
[
{ "key": "ctrl+k s", "command": "workbench.action.files.save" },
{ "key": "ctrl+s", "command": "workbench.action.files.saveAll" }
]

This will invert the shortcuts for the Save and Save All actions. From now on, Ctrl+S will save all the modified files.

Such a time saver when refreshing your build only to realise you forgot to save one of the files ;)