An open API service indexing awesome lists of open source software.

https://github.com/joegasewicz/vscode-c-settings

Starter template to build & run c code in Visual Studio Code
https://github.com/joegasewicz/vscode-c-settings

c cprogramming cprogramming-language visual-studio-code vscode

Last synced: 25 days ago
JSON representation

Starter template to build & run c code in Visual Studio Code

Awesome Lists containing this project

README

        

# Visual Studio Code starter template for C Programming
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/joegasewicz/vscode-c-settings?color=green)

C Settings for Visual Studio Code

# Setup
1. Install the [C/C++](https://code.visualstudio.com/docs/languages/cpp) vscode extension.

2. Clone the repo.

3. Run `rm -rf assets .git`

4. Rename `hello_world.c` as required.

5. Run any of the commands for the current selected file (you must always run the commands with the file currently selected containing the main routine call).

### Commands
Creates 3 run configs - Build & Debug, Build & Run & Run.

![vscode-c-settings](assets/cmds.png?raw=true "Title")

### Debugger
Run Build & Debug to use VSCode's break points etc.

![vscode-c-settings](assets/debug.png?raw=true "Title")