Create a C++ console app project | Microsoft Docs
docs.microsoft.com › en-us › cppOct 29, 2021 · In the Add New Item dialog, select Visual C++ under Installed if it isn't selected already. In the center pane, select C++ file (.cpp). Change the Name to HelloWorld.cpp. Choose Add to close the dialog and create the file. Visual studio creates a new, empty source code file and opens it in an editor window, ready to enter your source code.