{"id":21058980,"url":"https://github.com/robotdad/visualstudio-devcontainer-cpp","last_synced_at":"2026-01-02T03:43:05.658Z","repository":{"id":59332049,"uuid":"529006292","full_name":"robotdad/visualstudio-devcontainer-cpp","owner":"robotdad","description":"Example project for devcontainer usage in Visual Studio with C++","archived":false,"fork":false,"pushed_at":"2022-09-14T18:44:44.000Z","size":9,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T19:49:30.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robotdad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-25T20:20:45.000Z","updated_at":"2024-12-11T04:01:08.000Z","dependencies_parsed_at":"2022-09-24T13:40:22.734Z","dependency_job_id":null,"html_url":"https://github.com/robotdad/visualstudio-devcontainer-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"microsoft/vscode-remote-try-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotdad%2Fvisualstudio-devcontainer-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotdad%2Fvisualstudio-devcontainer-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotdad%2Fvisualstudio-devcontainer-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotdad%2Fvisualstudio-devcontainer-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robotdad","download_url":"https://codeload.github.com/robotdad/visualstudio-devcontainer-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243504195,"owners_count":20301389,"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","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":[],"created_at":"2024-11-19T17:09:38.005Z","updated_at":"2026-01-02T03:43:05.617Z","avatar_url":"https://github.com/robotdad.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visual Studio C++ Try Out Development Containers\r\n\r\nThis project is derived from a VS Code focused Try Development Container repo for C++. It was changed to use a Visual Studio CMake project as the base example instead of a simpler Hello World without CMake. The instructions below are also focused on just Visual Studio as opposed to Codespaces and VS Code.\r\n\r\nA **development container** is a running [Docker](https://www.docker.com) container with a well-defined tool/runtime stack and its prerequisites. You can try out development containers with **[GitHub Codespaces](https://github.com/features/codespaces)** or **[Visual Studio Code Remote - Containers](https://aka.ms/vscode-remote/containers)**.\r\n\r\n## Setting up the development container\r\n\r\n### Visual Studio - Dev Containers\r\n\r\nIf you already have [Visual Studio 2022 17.4 Preview 2](https://visualstudio.microsoft.com/vs/preview/) with the Linux workload and Docker installed, you can clone the source code and open the folder in Visual Studio and get going.\r\n\r\n[Dev Containers for C++ in Visual Studio](https://devblogs.microsoft.com/cppblog/dev-containers-for-c-in-visual-studio/) has a full write up of the experience.\r\n\r\n1. If this is your first time using a development container, please ensure your system meets the pre-reqs (i.e. have Docker installed) in the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).\r\n\r\n\r\n## Things to try\r\n\r\nOnce you have this sample opened, you'll be able to work with it like you would locally.\r\n\r\nSome things to try:\r\n\r\n1. **Edit:**\r\n   - Open `main.cpp`\r\n   - Try adding some code and check out the language features.\r\n1. **Terminal:** Press \u003ckbd\u003ectrl\u003c/kbd\u003e+\u003ckbd\u003eshift\u003c/kbd\u003e+\u003ckbd\u003e\\`\u003c/kbd\u003e and type `uname` and other Linux commands from the terminal window.\r\n1. **Build, Run, and Debug:**\r\n   - Open `MyCppApp.cpp`\r\n   - Add a breakpoint (e.g. on line 10).\r\n   - Press \u003ckbd\u003eF5\u003c/kbd\u003e to launch the app in the container.\r\n   - Once the breakpoint is hit, try hovering over variables, examining locals, and more.\r\n\r\n## License\r\n\r\nCopyright © Microsoft Corporation All rights reserved.\u003cbr /\u003e\r\nLicensed under the MIT License. See LICENSE in the project root for license information.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotdad%2Fvisualstudio-devcontainer-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobotdad%2Fvisualstudio-devcontainer-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotdad%2Fvisualstudio-devcontainer-cpp/lists"}