VSCode: coloring your output with Chalk

lockevn
1 min readJun 10, 2019

--

You can use chalk to color your console.log()for better CLI experience. But it might not work in VSCode, it still shows black and white. The problem is in Debug Console of VSCode.

Debug Console is NOT a terminal emulator and it only implements a small number of ANSI control codes.

We should use the external console by open launch.json, set the "console": "integratedTerminal"

enable integrated terminal feature to have coloring output

--

--

lockevn
lockevn

Written by lockevn

Developer, Sportman. Write code with joy, bake app with heart. Opinions are my own. If you feel I save your time, go http://BuyMeACoff.ee/Lockevn

No responses yet