To edit the task configuration file, complete the following steps:
- Save the workspace.
- From the Command Palette, choose the Tasks: Configure Task command.
The list of tasks available for configuration appears. - Select the task you want to customize.
The task configuration file opens in the Editor with a prefilled task entry. -
Change the task configuration based on your needs:
- 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. - Include the
labelparameter with the custom name of the task.
This is needed for binding the task. - Optionally, include predefined extension variables and Visual Studio Code's Variable Reference.
- Include the task binding parameters of your choice, either the ones added in the extension or native to Visual Studio Code.
-
Save the file.
- Bind the task to the action of your choice.
The task is listed with its customlabelidentifier.