VS2019 installation and use tutorial (super detailed)

VS2019 installation and usage tutorial

There may be many friends who know the VS2019 software, but don't know how to install and use it. Below I will specifically introduce the installation method of VS2019, create our own C++ project and how to run the code written by yourself!

Introduction to Visual Studio 2019 (VS2019)

        Microsoft Visual Studio (abbreviated as VS) is a series of development kits of Microsoft Corporation. VS is a basically complete set of development tools, which includes most of the tools needed in the entire software life cycle, such as UML tools, code control tools, integrated development environment (IDE), and so on. The target code written is applicable to all platforms supported by Microsoft, including Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework, Microsoft Silverlight and Windows Phone.
        Visual Studio is the most popular integrated development environment for Windows platform applications. The latest version is Visual Studio 2019, based on .NET Framework 4.8.
        In June 2018, Microsoft announced the development of a new generation of integrated development environment (IDE) Visual Studio 2019.
        On February 15, 2019, Microsoft finalized the first release time of the official version of Visual Studio 2019, April 2, 2019 (1 a.m., April 3, Beijing time.
        Visual Studio 2019 has released four public preview versions, namely Preview in December 2018 1, Preview 2 in January 2019. Preview 3 launched on February 13 and Preview 4 launched on March 1.

Classification of VS2019

1. Personal Edition: Visual Studio Community

     This version is a free, fully-featured extensible tool for personal use only, and is aimed at developers who build non-enterprise applications.
     Visual studio 2019 official official version authorization: free version, software size: 4.89GB, language: Simplified Chinese;
     Visual Studio 2019 is a powerful IDE editor developed by Microsoft, visual studio 2019 can be developed perfectly; Windows, iOS and Android Program, and visual studio 2019 has built-in Android emulator, so that developers don’t have to worry about running cross-platform programs.

2. Professional Edition: Visual Studio Professional

     Priced at $1,199, professional developer tools and services, for individual developers or small teams. Visual Studio 2019 Ultimate Official Official Edition Authorization: Free Edition, Software Size: 7.79GB Language: Simplified Chinese;
     Visual Studio 2019 Ultimate Edition is powerful and can directly edit windows android ios applications. The new version contains an integrated designer and editor Debugger, debugger and profiler, using C, C++, JavaScript, Python, TypeScript, Visual Basic, F, etc. for coding.

3. Enterprise Edition: Visual Studio Enterprise

     Priced at $5,999, an enterprise-level solution with advanced features (including advanced testing and DevOps), for teams dealing with projects of all sizes or complexity. Size: 18GB
     Visual Studio enables you to write code accurately and efficiently without losing the current file context. You can easily zoom in to detailed information, such as call structure, related functions, check-in, and test status. You can also use functions to refactor, identify, and fix code problems. Extend the capabilities of Visual Studio by leveraging the tools, controls, and templates provided by Microsoft, partners, and the community. Build extensions for further operation and customization according to your preferences.
     Manage source code in a Git repository hosted by any provider (including GitHub). You can also use Azure DevOps to manage the code, bugs, and work items of the entire project. Using the Visual Studio debugger, you can quickly find and fix bugs across languages ​​through the historical data of the code, whether locally or remotely. Use analysis tools to discover and diagnose performance issues without leaving the debugging workflow.

Since we are all students, the funding issue is a big issue. Here I will teach you how to install-Personal Edition: Visual Studio Community 2019 Edition (∵ That's because it's free! )

Insert picture description here

1. Download link: VS official website

2. Download the version, download the Community2019 version (personal version)

Insert picture description here

3.VS2019 related configuration

If you just want to use VS2019 to write C++ code, choose C++ desktop development. '

Insert picture description here

4. Reminder: Location We generally choose the default location, and then click install!

Insert picture description here

5. After the installation is complete, enter the interface

Insert picture description here

   There may be a small partner who will pop up the interface that requires you to log in. Here we can directly register a Microsoft account. Registration is free! If you don't log in to your Microsoft account, you can only try it for 30 days, and you can use it forever after logging in to your Microsoft account! That's because it's free!

6. Create my first project

(1) Click on the file
Insert picture description here

(2) Click New → Project
Insert picture description here

(3) We choose C++ as the language, and select the empty item below!
Insert picture description here
(4) Configure the new project
①The project name ( It's up to you ), take whatever you want !
②Location ( It's up to you ) Choose a place that is relatively large and convenient for you to find by yourself!
③The name of the solution ( It's up to you ) is just a code name, you can see your mood!

Insert picture description here

Sichuan dialect: gai Shi Yiha (explain)
①What is a project?
Answer: A project is also called a project, which divides the solution into several modules for processing, generally called Project.
②What solution?
Answer: The solution is a collective term for all the tasks to be completed, generally called Solution. To add a project is to add a project. The solution is the sum of all projects.

(5) The project is created and ready to code!

Insert picture description here

(6) Write our first
code① Right-click and select our project
Insert picture description here

② Click Add→New Item
Insert picture description here

③ Select C++ file (.cpp)
Insert picture description here

④ The item has been added, and now you can finally start to write code. There is a very excited Yazi!
Insert picture description here

⑤ Start writing code!
Insert picture description here

The code in the screenshot is as follows

#include<iostream>
using namespace std;
int main()
{
    
    
	cout << "Hello World" << endl;
	system("pause");
	return 0;
}

⑥ Run the code. We can click on the local Windows debugger or directly press F5 to run it.
At the same time we noticed that the font of my first code in item 1.01 on the left is bold!
Insert picture description here

⑦Run results
Insert picture description here

Of course, we just mentioned that a solution can have multiple projects, then we will create another project!

7. Create another project in the current solution

The steps are as follows:
① Right-click to select the solution
② Click Add
③ New project
④ Refer to the above for other steps!
Insert picture description here

At this time, we can see that the new project is created, and we can enter the code!
Insert picture description here

#include<iostream>
using namespace std;
int main()
{
    
    
	cout << "This is a C++ Program" << endl;
	system("pause");
	return 0;
}
1. Question: How should we run the project with multiple projects?

Answer: Right-click on the project you want to run and select Set as startup project!
Insert picture description here

2. How do I know which project I am running?

Answer: See which project's name is bolded, which project is running!

At this time, the 1.02 project is runningInsert picture description here

operation result
Insert picture description here

The above are the specific steps for us to create a C++ project using VS2019! Do you guys think I made it clear? If you have any questions, you can leave a message in the comment area.

Guess you like

Origin blog.csdn.net/qq_45782378/article/details/113043087