Scott Watermasysk Husband, Father, and KickoffLabs co-founder. Interests: basketball, bootstrapping, keyboards, training, and Building new things

👩‍💻 How to Execute a Terminal Command in VSCode


VSCode has a good story for using the terminal within the IDE. However, there is no built in way to execute a command via a keyboard shortcut.

Thankfully, I found an extension which easily enables this, Command Runner.

Run custom shell command defined in vs code configuration and node module package.json

With this in place, I was able to add keyboard shortcut which will execute Standard's fix commmand.

"key": "ctrl+alt+s",
"command": "",
"args": { "command": "standardrb ${file} --fix" }