Is it possible to get color output from gulp in a VSCode output window?

I followed this tutorial from Dan Wachlin to run the gulp task. Now I wanted to execute it with VSCode using Ctrl + Shift + B, so I configured this task runner:

{ "version": "0.1.0", "command": "gulp", "isShellCommand": true, "args": [ "--no-color" ], "tasks": [{"taskName":"default","isBuildCommand": true,"isWatching": true,"showOutput": "silent"}] 

}

The argument --no-color is used by default in tasks.json, which is automatically created by VSCode. If I remove it, the output from gulp still does not display colors. I want my lint errors to appear in red text.

Is it possible to get color output from gulp in a VSCode output window?

+7
gulp visual-studio-code
source share
3 answers

Currently not, but we have a plan element to support color output in the future.

You can follow him here .

+18
source share

I came across an Output Colorizer from IBM. It works great! It is available on the VS Code market at https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer

Alternatively, you can simply search for Output Colorizer from the extension palette in VS Code.

+3
source share

Add the following tasks to your tasks. json:

"_ runner": "terminal",

This will redirect the output to the internal terminal and display the colors correctly.

+1
source share

All Articles