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.

3

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.