How to set up C++ environment in sublime text 3?

first you have to save file with .cpp extension

like code1.cpp