Compile Button
This extension adds a Compile Code button on the right click menu in VS Code editor window. With this button you can compile different code files, using predefined console commands.
Default and example settings:
{
"compile.commands": {
".cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt",
".java": "cd $dir && javac $fileName"
}
}
You can specify the compile command by file extension. Supported placeholders:
| Placeholder | Example |
|---|---|
$dir |
/home/path/to/file |
$fileName |
main.cpp |
$fileNameWithoutExt |
main |