{"id":18688305,"url":"https://github.com/jrcichra/vscode_c_project","last_synced_at":"2025-09-12T17:43:03.851Z","repository":{"id":86560441,"uuid":"169454803","full_name":"jrcichra/vscode_c_project","owner":"jrcichra","description":"Files needed to get started writing C in VSCode","archived":false,"fork":false,"pushed_at":"2019-04-16T14:28:38.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T12:58:21.855Z","etag":null,"topics":["c","tutorial","vscode"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrcichra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-06T18:27:29.000Z","updated_at":"2019-04-29T19:12:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ee7d074-0155-4919-bd8e-5f5d25b208de","html_url":"https://github.com/jrcichra/vscode_c_project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrcichra/vscode_c_project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrcichra%2Fvscode_c_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrcichra%2Fvscode_c_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrcichra%2Fvscode_c_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrcichra%2Fvscode_c_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrcichra","download_url":"https://codeload.github.com/jrcichra/vscode_c_project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrcichra%2Fvscode_c_project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274848238,"owners_count":25360981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","tutorial","vscode"],"created_at":"2024-11-07T10:36:15.527Z","updated_at":"2025-09-12T17:43:03.826Z","avatar_url":"https://github.com/jrcichra.png","language":"C","readme":"# How to setup C compilation and debugging in VSCode (Windows)\n\nI love VSCode, but C doesn't work out of the box. I did some googling online but didn't come up with  a perfect solution in one place. This guide is by no means perfect, but it should help you get up and running, coding and debugging c programs\n\n## Installation\n\nIf you haven't already, install [Visual Studio Code](https://code.visualstudio.com/) for your platform.\n\nDownload [MinGW](https://osdn.net/projects/mingw/releases/) with the blue ```mingw-get-setup.exe``` button.\n\nInstall MinGW in the default location of C:\\MinGW. When MinGW asks you what packages you want to install, do the base C compiler and C++ compiler. In theory, this will work for both, however, as of the current moment, I've only written C code in VSCode.\n![](https://i.imgur.com/MNlkRgF.png)\n\nOnce this is done, close the MinGW installer.\n\nOpen up VSCode and navigate to a new project folder.\n\nInside this folder, make a .vscode directory.\n\nInside that .vscode directly, download and place the .json files into the .vscode directory.\n\n![](https://i.imgur.com/O6NHUc9.png)\n\nInside tasks.json, the \"command\" is what will be run as part of compilation. Change the gcc line to match your needs. In this case, I have main.c sent to gcc.\n\n![](https://i.imgur.com/It6z8x5.png)\n\nAdd gcc to your system environment variable path. You can specify the exact path inside the tasks.json,  but if you ever want to do gcc in cmd, this makes it soooo much nicer.\n\n![](https://i.imgur.com/XjTeH50.png)\n\n![](https://i.imgur.com/oCWfX1K.png)\n\n![](https://i.imgur.com/cjBMh8R.png)\n\n![](https://i.imgur.com/MaILoCc.png)\n\n\nRESTART VSCODE!!! Otherwise, it won't recognize the updated PATH variable\n\n\nThis \"should\" be everything you need to get it working. I'll be making the process simpler as we go but this is revision 1. Open up an issue if I missed anything.\n\n\nJustin\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrcichra%2Fvscode_c_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrcichra%2Fvscode_c_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrcichra%2Fvscode_c_project/lists"}