/c-vscode-template

Basic template for C project using CMake

Primary LanguageC

C VSCode Template

Extensions

C/C++ Extension Pack

Usefull Commands

Open Command Pallete pressing CTRL+SHIFT+P (or CTRL+P and prepend the command name with >):

  • CMake: Debug
    • Compile and starts a debug session with the VSCode integrated debugger.
  • CMake: Run Tests
    • Compile and run the tests on the tests/main.c file.
  • CMake: Run without Debugging
    • Compile and run the application on src/main.c file.

Hacking

The CMakeLists.txt file describes the projects. Edit the cmake file in order to add more files to the project.