0

I'm trying to use a task, but could only find how to compile:

{
    "version": "0.1.0", 
    "command": "g++",
    "args": ["-Wall", "${file}"],
    "showOutput": "always"
}

I'd also like to print input/output to console when the program is running.

Marco A.
  • 43,032
  • 26
  • 132
  • 246
KungA
  • 29
  • 1
  • 1
  • 2

1 Answers1

1

You might want to have a look at https://code.visualstudio.com/Docs/tasks

At the end there is an example how to setup the task system to use gcc. If you have more than a handful files to compile you might want to think about using a make file and call make instead of gcc directly.

Dirk Bäumer
  • 1,183
  • 9
  • 7