Run C and C++ Programs in VS Code | Correct Way

Hi programmers, welcome to new post of ozanecare. this post i am going to explain all important steps to run or compile c and c++ programs inside visual studio code.

1.Click on Extension and search c/c++ and code runner. install these two packages. see below image.

2.Write any c program and press Ctrl+Alt+N or right click and click run code.see below image.

3.File –> Preferences –> Settings –> Extension –>Run Code Configuration search terminal and Enable.Code -runner.Run in Terminal.see below image.

4.Write and any c++ or c codes.see below image.

Happy coding…thanks.

Post Author: adama