How to manually add task binding

nRF Connect for VS Code

tags
nRF Connect for VS Code

You can manually create task bindings in the binding configuration file by referencing the tasks defined in the correct task configuration file.

Complete the following steps:

  1. Open the binding configuration file.
  2. Add the following lines to the nrf-connect.taskBindings configuration option:

    {
      "nrf-connect.taskBindings": {
          "<action>": [{ "taskName": "<task_label>" }]
        }
    }
    
  3. Replace <action> with either flash or build and <task_label> with the task's custom label identifier.

  4. Save the file.

See Example of a single task for reference.