Detailed steps for downloading and installing Visual Studio 2022—–C language editor

Table of Contents

1. Introduction

(1) Differences from other software

(2) Introducing the types of editors used to write C language

2. Download and install

3. Create and run the first C language program

(1) Create a project

(2) Create new files

(3) Writing C language code

(4) Run the code


1. Introduction

Official website: Download Visual Studio Tools – Free installation for Windows, Mac, Linux

This is an integrated development environment developed by Microsoft Corporation. Designed for development in various programming languages, including C++, C, C#, F#, Visual Basic, Python, etc.

The difference between (1) and other software

1. The difference between vscode (Visual Studio Code) and vs2022 (Visual Studio 2022)

vscode is a lightweight, front-end-oriented editor that can of course be used to write in other languages. For example, C, Java, and python are all acceptable, but the corresponding environment and plug-ins must be installed.

vs2022 is a back-end-oriented software suitable for large-scale projects. It is also a full-featured integrated development environment that supports C, C#, C++, python, etc. This has a community free version, a professional version, an enterprise version, etc.

(2) Introducing the editor types for writing C language

personal evaluation

vc + + 6.0—Ancient weapons, most of them are used in school teaching, they are very old. Released by Microsoft in 1998, it is no longer maintained.

Dev-C++ —Suitable for lightweight and small development, completely free and easy to install. Suitable for beginners. Maintenance of this software has been reduced.

vs2022—- Used in large-scale development, supports multiple programming languages. Built-in powerful debugging tools. Powerful and complete functions.

vscode—a panacea for writing various languages. This is more suitable for writing front-ends. Of course, it can also be used for writing back-ends. Configuration can be a bit cumbersome for newbies.

Clion—A C and C++ integrated development environment (IDE) developed by JetBrains, dedicated to the development of C and C++ languages. Those who have used the JetBrains series of IDEA will feel more familiar with this. The interface is relatively friendly.

2. Download and install

1.Go to the official website of Visual Studio 2022 and select the community version to download

Download Visual Studio Tools – Free installation for Windows, Mac, Linux

2.After the download is complete, click to install

3.Click to continue (need to be online)

4. Only choose this C++ desktop development, which can run both C++ and C.

5.Click the installation location, modify the place to be installed, and then click Install

6.Installation in progress

7.Installation successful, click OK

8.Click this 2022 launch

9.Click to skip this option

10.After selecting the interface color, click Start

11.When you enter this page, the installation is successful.

3. Create and run the first C language program

(1) Create project

1. Create a new project

2.Select an empty project and go to the next step

3.Change the name and storage location of the project and click Create.

ps: It is best not to have Chinese characters in the directory where it is stored.

(2) Create a new file

4.After entering this page, right-click the source file of your project—Add—New item

5.Click to show all templates

6.Select the C++ file—->Customize the name, the suffix is .c—–>I will not change the location by default——->Click Add.

(3) Writing C language code

7.Creation completed, write code

#include <stdio.h>

int main()
{
printf("Hello World!\\
");

return 0;
}

(4) Run the code

8.Click this to run

9.Run successfully

If you have any questions, you can leave them in the comment area and we will reply them

If you think this article is helpful to you, please type “This article is helpful” in the comment area

Please support us! ! !

Like, collect and comment. Of course, you can also click on the red envelope at the bottom of the article or subscribe to paid article creation to support it. Hold your fist!

vip article:http://t.csdn.cn/Uq5j1

Bug encyclopedia subscription articles: http://t.csdn.cn/j6UyR

Ask for help: Click on the happy cat beside the cloud below to reply: Ask for help