Cloud9 IDE/C++
Appearance
Cloud9 may be used for C++ development, but by default the runner for C++ doesn't support spaces in folder or file names.
To add a new runner for C++ files, use the following configuration. Save the new runner as C++.run
.
{
"script": [
"set -e",
"if [ \"$debug\" == true ]; then ",
"/usr/bin/g++ -ggdb3 -std=c++11 \"$file\" -o \"$file.o\"",
"chmod 755 \"$file.o\"",
"node $HOME/.c9/bin/c9gdbshim.js \"$file.o\" $args",
"else",
"/usr/bin/g++ -std=c++11 \"$file\" -o \"$file.o\"",
"chmod 755 \"$file.o\"",
"\"$file.o\" $args",
"fi"
],
"info": "Running $file",
"debugger": "gdb",
"$debugDefaultState": false,
"env": {},
"selector": "^.*\\.(cpp|cc)$"
}