public
Created

Working C++.sublime-build on Windows

  • Download Gist
C++.sublime-build
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
 
"variants":
[
{
"name": "Run",
"cmd": ["${file_path}/${file_base_name}.exe"]
}
]
}

Thanks so much! This saved me a ton of time trying to figure out the details. :)

Hohoho, thanks so much, man! This saved me too! :D

The scanf does not works.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.