├── linux ├── cpp.png ├── console.sublime-build └── cpp.sublime-build ├── windows ├── cpp.png ├── console.sublime-build └── use_this.sublime-build ├── pythonBS.sublime-build └── README.md /linux/cpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shikharkunal99/Sublime-Build-System/HEAD/linux/cpp.png -------------------------------------------------------------------------------- /windows/cpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shikharkunal99/Sublime-Build-System/HEAD/windows/cpp.png -------------------------------------------------------------------------------- /pythonBS.sublime-build: -------------------------------------------------------------------------------- 1 | { 2 | "shell_cmd": "python $file_nameoutputf.in", 3 | "selector": "source.python", 4 | "working_dir": "$file_path" 5 | } 6 | -------------------------------------------------------------------------------- /windows/console.sublime-build: -------------------------------------------------------------------------------- 1 | { 2 | "cmd": ["g++.exe", "-std=c++11", "${file}", "-o", "${file_path}/${file_base_name}.exe", "&&" , "start","${file_path}/${file_base_name}.exe"], 3 | "shell":true 4 | } 5 | -------------------------------------------------------------------------------- /linux/console.sublime-build: -------------------------------------------------------------------------------- 1 | { 2 | "cmd" : ["g++ -std=c++11 $file_name -o $file_base_name && xterm -e ./$file_base_name"], 3 | "selector" : "source.c", 4 | "shell": true, 5 | "working_dir" : "$file_path" 6 | } 7 | -------------------------------------------------------------------------------- /linux/cpp.sublime-build: -------------------------------------------------------------------------------- 1 | { 2 | "cmd" : ["g++ -std=c++11 $file_name -o $file_base_name && timeout 4s ./$file_base_nameoutputf.in"], 3 | "selector" : "source.c", 4 | "shell": true, 5 | "working_dir" : "$file_path" 6 | } 7 | -------------------------------------------------------------------------------- /windows/use_this.sublime-build: -------------------------------------------------------------------------------- 1 | { 2 | "cmd": ["g++.exe", "${file}", "-o", "${file_base_name}.exe", "&&" , "${file_base_name}.exeoutputf.in"], 3 | "shell":true, 4 | "working_dir":"$file_path", 5 | "selector":"source.c" 6 | } 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sublime-Build-System 2 | A sublime build system for C++ and Python. 3 | 4 | This takes input from a file- inputf.in and prints the output in file outputf.in. 5 | 6 | 7 | To use it, Go to Tools->Build System->New build system and paste the code there. Save it with any name. Go to tools->Build System and the select your Build System. 8 | 9 | For more help, watch my video on youtube- https://www.youtube.com/watch?v=bGUiJ8lpvlY 10 | 11 | --------------------------------------------------------------------------------