

Let me know if you have any trouble getting that to work.

Now test to see if it works by opening a C file and pressing Ctrl + B to compile. Replace untitled with the capital letter C. Go back to Sublime and press CTRL-A to highlight everything.Īnd then paste the text you highlighted in step 7. Now highlight and copy the following text: Here is what the file will look like before and after.Ĭlick Tools -> Build System -> New Build System. Right-click this file and select Open with Sublime 2. In Sublime, click Preferences -> Browse Packages. Once you've done that, now we can configure Sublime to compile C files: In the bottom list, scroll down to Path and click Edit.Īt the end of the path, you're going to append C:\MinGW\bin C:\MinGW\msys\1.0\bin (adjust accordingly if you installed MinGW in a different location) so that it looks like this.Ĭlick OK repeatedly and close all the windows. On the left side, click Advanced system settings.Ĭlick the Advanced tab -> Environment Variables. However, you still need to run the compiled program afterwards either using Windows Explorer or the command line.įirst, make sure that you've added the MinGW folders to your Path environment variable so that you can access them globally. I had this same problem and was able to configure Sublime to compile C files by simply pressing Ctrl + B. /r/programminghelp – for beginner questions about programming./r/programming – for discussion and news about computer programming./r/learnprogramming – for people interested in learning to code./r/dailyprogrammer – for programming challenges of varying difficulty./r/cs50 – Harvard's Introduction to Computer Science.

SUBLIME TEXT FOR WINDOWS 7 PORTABLE
CS50-Harvard's introduction to computer science with a C programming course.Ī Tutorial on Portable Makefiles Other Subreddits on C.POSIX.1-2008-the standard operating system interface.
SUBLIME TEXT FOR WINDOWS 7 MANUAL
