Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>c_cpp_codelensNew to Visual Studio Code? Get it now.
c_cpp_codelens

c_cpp_codelens

Alex Casson

|
2 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

c-cpp-codelens README

A rough and ready extension to add codelens buttons for C/C++ files which call a build task in the .vscode folder

Features

Adds codelens buttons at the top of a C or C++ file to run build scripts. Adds buttons for compile, run, compile and run, and debug.

Requirements

Requires build tasks to be defined in tasks.json in a .vscode folder. At the moment the names of the tasks are hard coded:

  • Run current file
  • C: clang compile current file
  • C++: clang++ compile current file
  • C: clang compile and run current file
  • C++: clang++ compile and run current file
  • C: clang compile and debug current file
  • C++: clang++ compile and debug current file

I'll try and make these settings at some point.

Extension Settings

None

Known Issues

None

Release Notes

None at the moment

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft