Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Smart F5New to Visual Studio Code? Get it now.
Smart F5

Smart F5

Amrit Roushan

| (0) | Free
Zero-config instant runner for C, C++, Java, and Python with F5 and Editor Run button.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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