1. VScode installation
Official website: Install .
2. Download the compiler MinGW and decompress it
1. Download page: https://sourceforge.net/projects/mingw-w64/files/ .
2. Environment variable configuration
Enter the bin folder under mingw64, copy the current path, Win + i evokes the system settings, enter the advanced system settings and enter, click the environment variable, select path, edit, create, paste the path.
3. Plug-in installation
1 Chinese plug-in
2 C/C++ plug-in installation
3 Close and restart
If it is still in English after restarting, you can view the installed plug-ins in the " Store ", reinstall the Chinese plug-in " Chinese (simplified) ", and then restart. After restarting, the interface is as shown in the figure below:
C/C++ version replacement (the latest version is not recommended)
4. Create a new file
Create a new code folder (do not include the Chinese path), enter the right-click vscode to open
create a new file
Copy the following code in the test.c file for testing.
#include <stdio.h>
#include<stdlib.h>
int main()
{
printf("test\r\n");
system("pause");
return 0;
}
The running effect is as follows: