New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

C/C++ Code Runner

Package Overview
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry
This package was compromised as part of the ongoing "GlassWorm v2" supply chain attack.

Affected versions:

9.4.8
View campaign page

C/C++ Code Runner

🚀 Compile, run and debug single or multiple C, C++, or CUDA files with ease. 🚀 No need to remember any compiler commands: just build, run, and debug either from the status bar or with keyboard shortcuts. Supports GCC, Clang, MSVC, and NVCC. Quickly switch between debug and release modes, and work with single files or build complete folders. Advanced settings allow for powerful customization, including optimizer flags, sanitizer options, and flexible include/exclude folder patterns. Perfect for both beginners and experienced developers working with C/C++ in Visual Studio Code.

unpublished
Open VSX
Version
9.4.8
Version published
Maintainers
0
Created
Source
C/C++ Code Runner Icon

C/C++ Code Runner

🚀 Compile, run, and debug your C/C++/CUDA code with a single click – from single-file test cases to full folder builds!
No command line knowledge needed – focus on coding!

Task Execution Example

Requirements

  • 🔧 Any C/C++/CUDA compiler: GCC, Clang, MSVC, or NVCC

Make sure your compiler is available in your system's PATH or set the path in the extension's settings.
Windows—Visual Studio compiler (MSVC) is supported.

🏁 Quick Start

Compile a Single File:

  • Open your source file (.c, .cpp, etc).
  • Choose debug or release mode.
  • Hit Ctrl+Alt+B to build.
  • Run with Ctrl+Alt+R, or click ▶️ in the status bar.
  • Debug with Ctrl+Alt+D or via 🐞 on the status bar.
Task Status Bar

Build All Files in a Folder:

  • Select a folder containing C/C++ sources via the folder picker:
    Folder Quick Pick
  • Optionally, switch between debug and release mode:
    Debug/Release Mode Selection
  • Click a statusbar icon or use the keyboard for build / run / debug,
    see example above.
  • Build – compile all C/C++ files in the folder.
  • Run – runs the resulting executable.
  • Debug – opens a debugging session.
  • Clean – cleans the build files.
* Tasks require build to be executed once.

⚙️ Settings & Configuration

All configuration is handled locally in .vscode/settings.json.
Extension Settings

No need to edit c_cpp_properties.json directly, it's managed automatically.

Key options (customizable):

  • C Compiler Path (default: gcc)
  • C++ Compiler Path (default: g++)
  • C Standard (default: auto)
  • C++ Standard (default: auto)
  • Debugger Path (default: gdb)
  • MSVC Batch Path (for MSVC, Windows)
  • Use MSVC (toggle)
  • Enable Compiler Warnings
  • Enable Warnings as Errors
  • GCC/Clang Compiler Warnings (string array)
  • MSVC Compiler Warnings (string array)
  • Disable MSVC Security Warnings

💡 Features

Pass Command-line Arguments

Add custom CLI arguments for running or debugging your program.

Set Arguments Button
Press Ctrl+Alt+A to input your arguments.
Arguments Input Popup
Arguments are saved to launch.json for reuse in debug mode.
Arguments in Debug Config
When you select a new folder, stored arguments reset.
To pass whitespaces: wrap values in double quotes.

🎯 Folder Selection with Include/Exclude Patterns

You can refine which folders are available for build with glob patterns.

Exclude Pattern Setting
Left: Before exclude, Right: After exclude
Include/Exclude Example Before Include/Exclude Example After

🛠️ Generate Assembler Code

On running Generate Assembler Code, assembly output is placed in your build folder (experimental, single-file support only).

🔬 Advanced

  • Sanitizer support (address, undefined, leak) in debug builds.
  • Display compilation time stats.
  • Link Time Optimization toggle (release mode).
  • Set extra compiler/linker args (arrays).
  • Set include folders (no -I needed).
  • Fine tune folder globbing for builds.

⚠️ Notes

  • Supported headers: .h, .hpp, .hh, .hxx
  • Supported sources: .c, .cpp, .cc, .cxx
  • Filenames with spaces or & etc. can cause issues—prefer simple names!

If CMakeLists.txt exists at the workspace root, status bar icons auto-hide to prevent conflict with CMake tools. You may use the command "Toggle extension buttons in status bar" to override.

📢 Updates

See CHANGELOG at publisher_name

📜 License

Copyright (C) publisher_name Licensed under the MIT License

☕ Support

If you like this extension and want to support further development:

Donate via PayPal

Keywords

c++

FAQs

Package last updated on 02 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts