Quick Reference - Using Using Visual Studio


Using Visual Studio

Quick jump: Create project | Open an existing project | Add a new file | Add an existing file | Finding your text file output/input | Finding your source files | Building your code

How to install and use Visual Studio:

Create a project

Click on the Create a new project option on the main screen.

Select Empty Project and then click Next.

First, set your Location. Use the ... button to navigate on your hard drive.

Make sure you put your project inside your repository folder.

Next, set the Project name. Then click Create.

Open an existing project

Locate the .sln file on your computer. Double-click that to open the already made project.

Add a new file

Right-click on your project under the Solution Explorer.

Go to the Add submenu and click New item...

 

Select C++ File (.cpp) for a .cpp file, or Header File (.h) for a .h or .hpp file. Set its Name, then click Add.

Add an existing file

Right-click on your project under the Solution Explorer.

Go to the Add submenu and click Existing item...

 

Locate the file(s) you want to add and select Add.

Finding your text file output/input

Text files will be generated to, or expect to be read from, the path of your .vcxproj file. You can quickly find this path by right-clicking on your project in the Solution Explorer and click Open Folder in File Explorer.


Finding your source files

Text files will be generated to, or expect to be read from, the path of your .vcxproj file. You can quickly find this path by right-clicking on your project in the Solution Explorer and click Open Folder in File Explorer.


Building your code

You can build your code by going to Build and then selecting Build Solution or Build [project name]. You can also use the keyboard shortcut CTRL+B to build.

It will take a short amount of time to build and the results will be displayed below in the Output window. If there are any build errors, they will be listed in the Error List pane.