VSCode and Docker
I am super-excited about Docker – because it gives a new meaning about “ it works on my PC”! ( I have a presentation ready – https://github.com/ignatandrei/presentations/tree/master/2019/shorts/DockerForDevs/ )
However, I want to state something more important: VSCode is now ready to open Docker Containers!
You have to install:
Description: Adds syntax highlighting, commands, hover tips, and linting for Dockerfile and docker-compose files.
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Name: Remote – Containers
Description: Open any folder inside (or mounted into) a container and take advantage of Visual Studio Code’s full feature set.
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
Or this extension:
Name: Remote Development
Description: An extension pack that lets you open any folder in a container, on a remote machine, or in WSL and take advantage of VS Code’s full feature set.
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack
I have tried with dotnet try the extensions ( for your reference, you can generate the docker image and run the container by using the files from https://github.com/ignatandrei/Presentations/tree/master/2019/shorts/NetCoreGlobalTools/dotnetTry . Then use the externsion to open the dotnet try files under usr folder )
However, the VSCode has now capabilities over SSH, VSL and Docker. It is a wonderfull world, and now we can say : : it works on my Docker!
( My only regret is that VS 2019 has not those capabilities)