talira

C/C++ Compile Run

Compile, run and debug single C and C++ files in VS Code with one key

open sourceGPL-3.0-onlyfree

A Visual Studio Code extension for compiling, running and debugging a single C or C++ file without setting up a build: F6 compiles and runs the open file, F7 asks for arguments first, and F5 compiles it and starts the debugger. It uses the compiler already installed (gcc, or clang on macOS), with settings for compiler paths, flags, linker flags, include paths, run arguments, an output folder and running in an external terminal. Made by Daniel Pinto. GPL-3.0 licensed.

Problems it solves

  • compile and run one C file in VS Code without writing a Makefile
  • debug a small C++ program for a class assignment in my editor
  • press one key to build and run the C file I'm editing

Features

  • compile and run the open C or C++ file with one key
  • compile and debug with gdb or lldb
  • custom compiler paths, flags and run arguments
  • run in an external terminal

Limitations

  • Works on single files, not projects with a build system1
  • Needs a C or C++ compiler installed separately1

Alternatives

The same job

These do what C/C++ Compile Run does.

  1. C/C++ for Visual Studio Code Microsoft's C and C++ language support for VS Code
  2. CLion The IDE for professional C and C++ development
  3. Visual Studio The comprehensive IDE for .NET and C++ developers on Windows
  4. Live Sass Compiler Compiles Sass and SCSS files to CSS as you save them in VS Code
  5. Live Share Real-time collaborative editing and debugging in VS Code

Compare C/C++ Compile Run with the top 3