templating icon indicating copy to clipboard operation
templating copied to clipboard

Add Dev Container templates

Open eerhardt opened this issue 5 years ago • 2 comments

I should be able to do the following:

dotnet new api
dotnet new devcontainer

And my directory would look roughly like

https://github.com/microsoft/vscode-remote-try-dotnetcore/

specifically I would have a .devcontainer folder that was set up for usage in VS Code (See https://code.visualstudio.com/docs/remote/containers).

Making it easier to get a .devcontainer folder up and running with my application would be great. That way I wouldn't have to go find a sample on the web, and copy-paste it into my folder.

eerhardt avatar Feb 27 '20 23:02 eerhardt

Generally in favor of this, but it's hampered somewhat by VSCode giving a nice experience when adding devcontainer configurations to a repo that doesn't have them already:

image

image

These do basically all of what a simple app would need (though there should be F# examples as well for completeness, likely drawn from the setup that dotnet/fsharp has already done in their repo).

baronfel avatar Apr 12 '22 22:04 baronfel

I forgot to note that this list of pre-configured devcontainer configurations is maintained by vscode here, so one potential pathway for us (similar to the editorconfig and gitignore discussions we'd been having) is creating templates based off of these remote resources in an automated or semi-automated process that watches for changes and absorbs them automatically.

baronfel avatar Apr 13 '22 13:04 baronfel

Closing in favor of using VS Code.

YuliiaKovalova avatar May 16 '23 10:05 YuliiaKovalova