How to bind tasks

nRF Connect for VS Code

tags
nRF Connect for VS Code

To bind a task to an action:

  1. Hover your cursor over Build or Flash from the Actions View.
  2. Click the More actions... button (...) that appears to the right.
  3. Click Bind Task to Action.
    A quick-pick menu appears in the Editor. This list includes pre-defined tasks and tasks you have defined manually (with their custom label identifier).
  4. Click the action you want to bind.
  5. Click the builds you want to bind to the action.

Binding two custom tasks to an action

Once you have bound tasks to an action, hover your mouse over Build or Flash, whichever you have bound the task to, to see them listed in the help text. You can also click on Manage Task Bindings under More actions... to open the setting file that contains the binding definition.