microsoft / vscode-makefile-tools

MAKE integration in Visual Studio Code
Other
184 stars 55 forks source link

how to use this when develop server is in docker #551

Open arnold0kang opened 5 months ago

arnold0kang commented 5 months ago

hi, I use vscode in window, but my develop server is ubuntu in docker . when i install this extension for my remote ssh project . this extension stay in installing , stuck here. what should I do ? I have search in google . maybe caused by no port export for this. but the doker only forward port 22. thanks

xiahualiu commented 5 months ago

If you used the Dev Container extension I believe all you need to do is just connect to the docker container using that extension then do everything just like you would do on your local machine.

VSCode->ssh remote connection->switch workspace folder->reopen in container(now you are in the container env)

You need to write a devcontainer.json file for your docker image and put it inside .devcontainer folder under your workspace in step 3.

You don't need to port forward.

gcampbell-msft commented 5 months ago

@xiahualiu Thanks for the great suggestion! @arnold0kang Please let us know if this works for you