Skip to content
/ c-template-project Public template

This is a template project for working with multi file C projects in Linux

License

Notifications You must be signed in to change notification settings

cirillom/c-template-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a template project for working with multi file C projects in Linux

Folder structure

All your code should be placed inside src/ and you can create any numbers of directories needed inside it. You can also create folders such as res/, scripts/ in the root folder to aid you.

Debugging

In order to use the debugging features this workspace provides you need to install the C/C++ extension from Microsoft.

To run your code without debugging you can use Ctrl + F5 and to run your code with the debugging tools and breakpoints use F5.

To quickly test run your code without using vscode's debug features you can run the task C: gcc build and run project or you can configure a keybind in your keybindings.json using:

    {
        "key": "alt+q",
        "command": "workbench.action.tasks.runTask",
        "args": "C: gcc build and run project",
        "when": "editorTextFocus"
    },

There's also a task to create a .c and .h files with a base code, you can run it with C: new .h and .c file or you can configure a keybind in your keybindings.json using:

    {
        "key": "alt+d",
        "command": "workbench.action.tasks.runTask",
        "args": "C: new .h and .c file",
        "when": "editorTextFocus"
    },
Planned features
  • Return to old system of creating each .o in order to improve compilation time
  • Create header new C file with header

About

This is a template project for working with multi file C projects in Linux

Topics

Resources

License

Stars

Watchers

Forks