How to edit task file and entries

nRF Connect for VS Code

tags
nRF Connect for VS Code

To edit the task configuration file, complete the following steps:

  1. Save the workspace.
  2. From the Command Palette, choose the Tasks: Configure Task command.
    The list of tasks available for configuration appears.
  3. Select the task you want to customize.
    The task configuration file opens in the Editor with a prefilled task entry.
  4. Change the task configuration based on your needs:

    1. Include the task binding parameters of your choice, either the ones added in the extension or native to Visual Studio Code.
      See Examples for reference.
    2. Include the label parameter with the custom name of the task.
      This is needed for binding the task.
    3. Optionally, include predefined extension variables and Visual Studio Code's Variable Reference.
  5. Save the file.

  6. Bind the task to the action of your choice.
    The task is listed with its custom label identifier.