how to add c environment to sublime text 3
copy from this
For a sublime build system implementing the Run menu command:
- Go to Tools->Build System->New Build System...
Or
- Create a file
~/.config/sublime-text-3/Packages/User/GCC.sublime-build
And insert this:
{ "shell_cmd" : "gcc $file_name -o ${file_base_name}", "working_dir" : "$file_path", "variants": [ { "name": "Run", "shell_cmd": "gcc $file_name -o ${file_base_name} && ${file_path}/${file_base_name}" } ] }
*This example uses the GCC compiler. Feel free to replace gcc with the compiler of your choice.