Skip to content

Instantly share code, notes, and snippets.

@lsem
Created May 31, 2019 13:32
Show Gist options
  • Save lsem/855b4b0e4c5565a46f14bbc557f13c41 to your computer and use it in GitHub Desktop.
Save lsem/855b4b0e4c5565a46f14bbc557f13c41 to your computer and use it in GitHub Desktop.
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "== Compile Current File ==",
"command": "echo 'Compiling: ${file} ...' && TIME=\"Took: %es\" time `grep -m 1 -B3 -A0 '\"file\": \"${file}\"' compile_commands.json | cat - <(echo }) | jq -r '.command'` && echo -e \\\\e[32mCompiled successfully\\\\e[0m \\\\U0001F525",
"args": [],
"options": {
"cwd": "${workspaceFolder}/sources/build"
},
"problemMatcher": [
"$gcc"
],
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment