VS Code Extensions
Compile Button

Compile Button

by rumyantsev168

Compile various code files with one button click.

Downloads

8

Rating

— (0)

Version

0.0.3

Last updated

Aug 13, 2026

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

Related extensions