Running pio run with less cores

When I build my project with the task button in VSCode, it always uses all cores to start compiling and building.

I would like to start it with 1 less core, so i can do some other stuff while building.
How can I modify the behaviour of the taskpane taksbuttongs that platformIO IDE adds?

Currently, you either have to invoke the build process manually on the commandline with a specified number of jobs (= approximately cores) like

pio run -j 3

for 3 jobs in parallel, or a regular build will use all available cores. There is no environment variable to control the default number of jobs, it defaults to the detected number of CPU cores.

See

https://docs.platformio.org/en/latest/envvars.html

and Is it possible to say platformio to use all my CPUs during compiling? - #3 by maxgerhardt.

You could file a feature request for adding a e.g. PLATFORMIO_NUM_JOBS variable, that is used as a default instead.