The extension lets you create custom tasks and then bind them to the following actions:
Note
Task bindings only apply to the primary Build command. They do not apply to the action Build All.
You can bind any custom task. When bound, these tasks will run instead of the standard commands. This is useful if you want to run a custom script that hooks into your own build system, or that performs pre- or postprocessing steps.
For overriding build and flash tasks, the extension provides nrf-connect-build and nrf-connect-flash task types. For general purpose tasks where access to the toolchain is required, the extension provides nrf-connect-process and nrf-connect-shell task types.
Each of these task types comes with a series of parameters, either added in the extension or native to Visual Studio Code. This means that you can use them to for example call west commands, set environment variables, or pass custom arguments to flash runners.