Tasks

Development process usually involves running various tools for pre-processing, compiling and simulating the code. In order to save time and avoid switching through applications, these tools can be integrated in VS Code using the Tasks feature.

Tasks are configured in the <workspace directory>/.vscode/tasks.json file. To generate a tasks.json stub, use the Tasks: Configure Tasks command and select Create tasks.json file from template ‣ Others.

Run a simulation
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Run simulation",
            "type": "shell",
            "options": {
                "cwd": "$IP_DIR",
                "env": {
                    "TEST_NAME" : "smoke"
                }
            },
            "command": "make sim",
        }
    ]
}

To run a Task, use the Tasks: Run Task command and select the desired one from the drop-down list.

For a comprehensive reference, see the Tasks chapter in the official VS Code documentation or this demo movie