1

I'm currently using the Green Hills Software (GHS) compiler to compile C code. I'm using Visual Studio Code on a Windows machine and using the workspace file to create my tasks.

My problem is that the output of the task is all in plain white on black background and it's hard for the other developers to locate warnings/errors when there are no colors.

Thus, I thought it could be possible to modify the compiler output before it's being shown in the VSCode terminal. Any thoughts on that?

My task in the workspace file looks like this :

{
    "label": "Build Project",
    "type": "shell",
    "command": "C:/ghs/comp_202014/gbuild.exe",
    "args": [
        "-parallel",
        "-cfg=${input:build_config}",
        "-top",
        "MyGHSProject.gpj"
    ],
    "group": {
        "kind": "build",
        "isDefault": true
    },
    "options": {
        "cwd": "${workspaceFolder}"
    }
},

I have tried using extensions such as Colorized, using the settings.json file to edit the terminal colors, the code-runner extension to output the task output in the output panel, but nothing worked.

Dan Guilas
  • 23
  • 3

0 Answers0