Skip to content

Instantly share code, notes, and snippets.

@arnabsen1729
Created November 22, 2020 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnabsen1729/3a1a2a7010886ab1f3d37e037dc577e4 to your computer and use it in GitHub Desktop.
Save arnabsen1729/3a1a2a7010886ab1f3d37e037dc577e4 to your computer and use it in GitHub Desktop.
My C++ sublime build config for CP
{
"cmd": ["g++", "-std=c++17", "-Wextra", "-Wshadow", "-Wall", "-DLOCAL_MACHINE", "-fsanitize=undefined", "$file", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++, source.cxx, source.cpp",
"variants":
[
{
"name": "Run",
"shell": true,
"cmd": ["gnome-terminal -e 'bash -c \"${file_path}/${file_base_name};echo;echo; echo Press ENTER to continue; read line;exit; exec bash\"'"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment