![]() From the menu select " Tasks" > " Run Task.". Hold down the Cmd key and press the spacebar to activate Spotlight. Typically we do this by executing a Run Task. Setting Up VSCode for C++ Development Install the Xcode build tools. This will open a terminal in the bottom half of the window from which you can navigate to the VSC_HelloWorld directory and run the above commands. This should be fairly straight forward, but feel free to copy the following into the file: For this example we will call the file HelloWorld.cpp and place it in a new directory which we will call VSC_HelloWorld/. Go ahead and save this file (you can use the menu File > Save to do this). The folder name becomes the project name and the namespace name by default. Then click Select Folder ( Open on macOS). In the Open Folder dialog, create a HelloWorld folder and select it. ![]() This will open a new editing window where we can begin constructing our script. NET console app project named 'HelloWorld'. You will be greeted with the standard welcome screen (note the images are taken while working on a Mac, but they should be similar to your installation):įrom the Start menu, select New file. The first way is directly from the user interface. This example demonstrates how to write this program and debug it using Visual Studio Code (I'll refer to Visual Studio Code as VS Code from now on). The first program one typically writes in any language is the "hello world" script.
0 Comments
Leave a Reply. |