vscode Tutorial => First Steps (C++): HelloWorld.cpp
riptutorial.com › vscode › exampleThe simplest is to open a terminal, and navigate to the directory that we created. You can now compile the script and run it with gcc by typing: $ g++ HelloWorld.cpp -o helloworld $ ./helloworld Hello World! Yay, the program worked! But this isn't really what we want. It would be much better if we could run the program from within VSCode itself.
C++ programming with Visual Studio Code
To make sure the compiler is installed and configured correctly, we'll create the simplest Hello World C++ program. Create a folder called "HelloWorld" and open VS Code in that folder ( code . opens VS Code in the current folder): mkdir HelloWorld cd HelloWorld code . The "code ."