VSColorOutput icon indicating copy to clipboard operation
VSColorOutput copied to clipboard

Feature Request: Embed colour in output?

Open eddieparker opened this issue 7 years ago • 0 comments

Often I'll add debug prints in my code, so I can get a stream of output. It'd be nice if I could embed a colour in the output, and have VSColorOutput replace it. i.e., if I had something like:

DEBUG SPEW 1
DEBUG SPEW 1
DEBUG SPEW 1
DEBUG SPEW 2
DEBUG SPEW 3
DEBUG SPEW 2
DEBUG SPEW 1
DEBUG SPEW 2
DEBUG SPEW 3
DEBUG SPEW 3
DEBUG SPEW 1
DEBUG SPEW 1
DEBUG SPEW 2
DEBUG SPEW 3
DEBUG SPEW 2
DEBUG SPEW 3
DEBUG SPEW 1
DEBUG SPEW 1
DEBUG SPEW 2

It would be nice if I could do something like this:


{vsc:red}DEBUG SPEW 1
{vsc:red}DEBUG SPEW 1
{vsc:red}DEBUG SPEW 1
{vsc:yellow}DEBUG SPEW 2
{vsc:green}DEBUG SPEW 3
{vsc:yellow}DEBUG SPEW 2
{vsc:red}DEBUG SPEW 1
{vsc:yellow}DEBUG SPEW 2
{vsc:green}DEBUG SPEW 3
{vsc:green}DEBUG SPEW 3
{vsc:red}DEBUG SPEW 1
{vsc:red}DEBUG SPEW 1
{vsc:yellow}DEBUG SPEW 2
{vsc:green}DEBUG SPEW 3
{vsc:yellow}DEBUG SPEW 2
{vsc:green}DEBUG SPEW 3
{vsc:red}DEBUG SPEW 1
{vsc:red}DEBUG SPEW 1
{vsc:yellow}DEBUG SPEW 2

And have the system replace {vsc:[colour]} with the appropriate colour.

I realize I could work around this with regexes, but then I have to change the regex everytime I monkey with my output a certain way.

eddieparker avatar Feb 15 '18 21:02 eddieparker