-
-
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++" | |
} |
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
It helped me, thanks so much!