Installation and configuration of vscode C/C++

Visual Studio (VS) is a basically complete development toolset, which includes most of the tools needed in the entire software life cycle, such as UML tools, code control tools, integrated development environments (IDEs), etc. But for beginners, although VS is easy to use, it easily makes us rely too much on this powerful IDE, which may cause us to lack some lower-level but more important knowledge. In addition, as a complete development environment, VS is also relatively bloated. Compared with vscode, vscode is more concise.

Introduction to vscode :

Visual Studio Code is a lightweight yet powerful source code editor that runs on your desktop and is available for Windows, macOS, and Linux. It has built-in support for JavaScript, TypeScript, and Node .js and has a rich ecosystem of extensions for other languages ​​and runtimes such as C++, C#, Java, Python, PHP, Go, .NET.

vscode download and installation:

Download Visual Studio Code - Code Editing. Redefined from vscode official website

 

 

 

 

C/C++ configuration:

1.MinGW下载:   MinGW-w64 - for 32 and 64 bit Windows - Browse /mingw-w64/mingw-w64-release at SourceForge.net

2. After downloading, place it in a directory that is convenient for you, and copy the path to the bin directory in the file (you will need it later)

 3. Configure the path variable in the system environment variable

 

 

 

 

 4. Check whether the configuration is successful

        1.win+r enter cmd

        2. Enter gcc -v

 vscode configuration C/C++

1. Download c/c++ plug-in

 After the download is complete , restart vscode

2. Test

#include<stdio.h>

int main()
{
	printf("hello");
	return 0;
}

Guess you like

Origin blog.csdn.net/qq_63032911/article/details/130484134