User level tasks is an available feature since VSCode January 2020 (version 1.42).
From the Release Notes:
Tasks declared in
tasks.jsonare now supported at the User Settings level. If you have a build script that you use across many projects, or if you don’t want your tasks in a project folder, you can add your tasks in the usertasks.jsonfile. Run the Tasks: Open User Tasks command to create user level tasks and these tasks will be available across all folders and workspaces. Only theshellandprocesstask types are supported here.
In the Command Palette (CTRL + SHIFT + P) type:
> Tasks: Open User Tasks