Search code examples
gulpvisual-studio-codegulp-watch

Autorun gulp tasks in Visual Studio Code when opening workspace


Every time I open my project's workspace in Visual Studio Code, I have to manually press F1, write 'run task' and select my startup task to rebuild source code and initiate the debug web server/source-file watchers.

Is there a way to have Visual Studio Code auto-run this task for me when I open a workspace?

Like a 'default' task (seemed to work with Task Runner in Visual Studio 201x). Maybe there is some other naming-convention in Visual Studio Code that I'm not aware of (I've Googled a lot).


Solution

  • There is a plugin called Blade Runner which does this. Only problem you need to stick to the default run build task. You can run different tasks inside the default one.