Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I get colored output from gulp in VSCode output window?

I've been following this guide from Dan Wahlin to get a gulp task up and running. Now I wanted to execute it from VSCode with 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 "--no-color" argument is default in the tasks.json that is automatically created by VSCode. If I remove it, the output from gulp is still not showing colors. I want my lint errors to show up in red text.

Is it possible to get colored output from gulp within the VSCode output window?

like image 785
mikeesouth Avatar asked May 27 '15 20:05

mikeesouth


3 Answers

Currently not, but we have a plan item to support colored output for the future.

You can follow it up here.

like image 185
Benjamin Pasero Avatar answered Sep 23 '22 04:09

Benjamin Pasero


I stumbled upon Output Colorizer from IBM. It works perfectly! It is available on the VS Code marketplace at https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer

Alternatively you can just look for Output Colorizer from the extension palette in VS Code.

like image 30
user3618636 Avatar answered Sep 20 '22 04:09

user3618636


Add the following to your tasks.json:

"_runner": "terminal",

That will redirect the output to the internal terminal, and will show colors properly.

like image 31
Jaime Avatar answered Sep 22 '22 04:09

Jaime