Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Compile ButtonNew to Visual Studio Code? Get it now.
Compile Button

Compile Button

rumyantsev168

|
1 install
| (0) | Free
Compile various code files with one button click.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft