Is it possible to automatically save all changed files before build? It's a bit tedious to press Ctrl+s and then Ctrl+Shift+b all the time.
If you don't need to build but rather run the file, then you can adjust the Code Runner extension settings by adjusting your user settings. Settings can be accessed in file > preferences > settings
(or with Ctrl+comma.)
To save the current file before running add the line below to your User Settings:
"code-runner.saveFileBeforeRun": true,
or to save all files before running, add this line:
"code-runner.saveAllFilesBeforeRun": true,
I also added this shortcut key(keybinding) to file > preferences > keyboard shortcuts > keybindings.json
{
"key": "ctrl+enter",
"command": "code-runner.run"
},
Now I can just hit Ctrl+Enter and all the magic happens.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With