Sublime Text3 (1)—— C/C++ Compile & Run
Recently I install a famous editor,Sublime Text3. It can open files fast and has a cool environment,which make me be into it.
However,it also has a shortcoming that you have to do some configuration by yourself,which may need some skills and experience.
The first problem is when have done a C/C++
file,`you may find that it seems that you can’t compile and run your code because you can’t see the result.
We all know that we generally use GCC/G++
to compile C/C++
file and generate a executable file(exe file
) then you can see the result soon.Now follow me!
Windows
1. Download the MinGW,which contains gcc,g++ and so on.
type the download address
2.Extract the MinGW folder under C:/
.
3.Add the path C:/MinWG/bin
to user’s environment varies
and root PC.
4.Then open your C/C++
file and operate as followed:
Tools->Build System->Automatic
Tools->Build With->C++ Single File-Run