Smart F5 for VS Code
Smart F5 provides a zero-configuration, instant build and run workflow for C, C++, Java, and Python on Windows.
Simply open any source file anywhere on your computer and press F5 or click the editor title ▶ Run button.
Features
- ⚡ Zero Setup: No
.vscode/launch.json or tasks.json required.
- 🎯 Language Detection: Automatically recognizes
.c, .cpp, .cc, .cxx, .java, and .py.
- 🔍 Auto-Toolchain Detection:
- C / C++: Auto-detects MSYS2 UCRT64 (
C:\msys64\ucrt64\bin\g++.exe), MinGW, or system PATH.
- Java: Auto-detects Adoptium Eclipse / Oracle JDK, compiles with
javac, and executes classes seamlessly.
- Python: Uses active Python interpreter or system Python, running with unbuffered I/O (
python -u).
- 🖥️ Direct Streamed Output: Dedicated
Smart F5 Output Channel with real compiler output and clean execution logs.
- 🛑 Graceful Stop: Press
Shift+F5 to cancel any active process.
Keybindings & Commands
| Key |
Command |
Action |
F5 |
smart-f5.run |
Compile & Run the active file |
Ctrl+F5 |
smart-f5.run |
Compile & Run the active file |
Shift+F5 |
smart-f5.stop |
Stop running execution process |
| Command Palette |
smart-f5.detectTools |
Check all detected compilers and tools |
Packaging & Installation
To create a .vsix package:
npm run package
To install into VS Code:
code --install-extension smart-f5-1.0.0.vsix --force
| |