It is possible that the terminal may close before you are able to view the output. If you have the integrated terminal open, you'll notice that the "Hello World!" text will be printed there. Then we can run the executable using " Tasks" > " Run Task." and selecting the " run" task we created. Now, to build the project from inside the method select " Tasks" > " Run Build Task." and select our created " build" task and " Continue without scanning the task output" from the drop down menus that show up.
Update this file to contain the following and save it: references the top level directory of our workspace, which is our " VSC_HelloWorld" directory. This opens a new file called " tasks.json" which contains some default values for a task. To do this, select " Tasks" > " Configure Default Build Task". Next we want to define the actual tasks which we want VS Code to run.
The Explorer menu now displays the contents of the directory. Note: If you open a directory within VS Code (using " File" > " Open." for example) you will already be in a workspace.
This example introduces you to the basic functionality of VS Code by demonstrating how to write a "hello world" program in C++.