implementation

Using SublimeText for compiling and runing individual cpp files

22 Jul , 2012  

I prefer using SublimeText 2 for running individual files rather Eclipse. It’s pretty easy and quick. First, you need to download SublimeText 2 and install it your system.

Then second step, make sure you have G++ already installed in your system.

Ready to go? First, let we create some helloworld.cpp files from SublimeText 2:

1
2
3
4
5
6
7
#include <iostream>
using namespace std;

int main() {
    cout << "Hello wolrd!";
    return 0;
}

Then go to Tools -> Build System -> C++.

All you need are ” CTRL+B ” to build and “CTRL + SHIFT + B” to run individual files.
Easy isn’t ?