Hacker News new | ask | show | jobs
by cheesedoodle 2631 days ago
I'd love to use the VSCode IDE launched from the host and compile C++ code within docker. Is this possible? Currently, I write code in the IDE and compile in the container from the terminal. Imagine that, cross compile from any host in a contained c++ environment. :)

Edit: I use CMAKE_TOOLCHAIN_FILE to describe the target env.

1 comments

Code-server, which OP is building on, should support any language.

I've only used it briefly for some node.js work but as the whole thing is just sitting in a normal linux docker container, you should be able to do anything docker/linux can do.

https://github.com/codercom/code-server