Get intellisense in editor from compiled code in docker containers

I've been looking for a while for this, but can't seem to find a decent solution without creating unnecessary clutter in my workspace.

Is it possible to use an editor like VSCode and intellisense it using the compiled code that is inside a docker container (or several)?

One way to do this is to create shared volumes that link node_modules and the compiled folder.

In my workspace I am using NodeJS, Npm modules and my editor of choice is visual studio code. Workspace setup is started with docker-compose

Any suggestion is appreciated

+3


source to share


1 answer


The VS Code Team recently announced a Remote Development Extension Pack that contains the Remote - Containers extension.

The Visual Studio Code Remote - Containers extension lets you use a Docker container as a fully functional development environment. This allows you to open any folder inside (or mounted) in the container and use the full set of VS Code features.

This allows VS Code to deliver a local quality development experience - including full IntelliSense (add-ons) , code navigation, and debugging - no matter where your tools (or code) are located.



source

Please note that a build of VS Code Insiders is required now

0


source







All Articles