DEV Community

Discussion on: Using Devcontainers to set up your development environment

Collapse
 
caduribeiro profile image
Cadu Ribeiro

Hey @cescquintero , thanks for your input!

Awesome question! No, devcontainers is not something that can be used only with VS Code. Although the support for devcontainers is MUCH better with VS Code because the way I explained on the post: VSCode auto installs it servers on the container and the UI connects the server, so all the extensions and LSP are running INSIDE the container. With this you don't need to install anything on your host machine. Reading containers.dev/supporting Ive found that IntelliJ also has supports for this and works on the same way but I failed to run RubyMine with my devcontainer (still don't know why).

There is also a CLI code.visualstudio.com/docs/devcont... that you can install and get your devcontainer up and running and work with all oder editors you want (like Sublime). But different from VSCode, you will need to install LSPs / extensions on your host machine and only use the CLI to start the server and get your project running. For vim usually I see people ssh the container and running vim there.

For now VSCode is the most efficient implementation of devcontainers but this can be changed in future if all editors starts to implement their own vision of the feature. It is an open specification that born recently!

Hope you enjoyed the post.