For C and C++, the sublime text plugin 'sublime clang' ( https://github.com/quarnster/SublimeClang ) , does exactly this, as well as check code for errors as you type. I only started using it a couple of days ago, and I already can't imagine being without it.