-
-
Save nktstudios/fd1865492dd3ed97ff3bc4863cc6ecb3 to your computer and use it in GitHub Desktop.
{ | |
"cmd": ["g++.exe", "-std=c++14", "-o", "$file_base_name", "$file", "&&", "start", "cmd", "/c", "$file_base_name & echo. & echo. & pause"], | |
"shell": true, | |
"selector": "source.c++" | |
} |
Not working on Linux
works for me as well. thanks a tonXD
thanks
how would I change this to make sublime text open terminus or cmder or windows terminal instead of cmd?
Thank you!
Thank you, I hated having to go in cmd in the file location and typing "g++ -o run File.cpp && run" just to test out an Input this makes that faster.
Thanks You helped me!
It helped me, thanks so much!
Thanks!
Thanks man.
Worked!
Thank you!
Spend all my honest to thank you!
Not working on Linux
Use this code for linux:
{
"windows" :
{
"shell_cmd": "g++ -lm -Wall "${file_name}" -o "${file_base_name}.exe" && start cmd /c "cd . && ${file_base_name}.exe && echo. && pause" "
},
"linux" :
{
"shell_cmd": "g++ -lm -Wall "${file}" -o "${file_base_name}" && xterm -e "./${file_base_name}; echo; echo -n 'Press [ENTER] to exit... '; read -s" "
},
"osx" :
{
"shell_cmd": "g++ -lm -Wall "${file}" -o "${file_base_name}" && xterm -e "./${file_base_name}; echo; echo -n 'Press [ENTER] to exit... '; read -s" "
},
"file_regex": "^(..[^:]):([0-9]+):?([0-9]+)?:? (.)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++, source.cpp",
"quiet": true
}
Thanks a lot
Man, THANK YOU!!!!!!!!!
Helped me, thank you!!
how to save it and where
Thanks for this ... much needed.