user3702643
user3702643

Reputation: 1495

Setting up vscode for c++ in linux

I am trying to set up vscode to do c++ programming on linux. I am confused about the instructions given. Do I need either one or both of these things given below to compile and debug my c++ code?

Can I use only cmake to compile run and debug my code? If so, do I still need the tasks.json and launch.json?

https://code.visualstudio.com/docs/cpp/config-linux

https://code.visualstudio.com/docs/cpp/cmake-linux

Upvotes: 1

Views: 2806

Answers (1)

asmmo
asmmo

Reputation: 7100

You can use cmake extension here.

Follow the setup instructions from here

I use it and it works perfectly.

Upvotes: 1

Related Questions