You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run > Run Container On Browser in the command pallete. Then the container will be launched with the Terminal (can take some time to start the container)
In the container, the workspace is mounted at /workspace and you can compile and run hello.c file.
root@localhost:/# ls /workspace/LICENSE hello.croot@localhost:/# gcc /workspace/hello.croot@localhost:/# ./a.outHello, world!
NOTE: it might take some time to complete compiling the code.
Container
This will launch the following container.
FROM debian:sid-slim
RUN apt-get update && apt-get install -y gcc
The workspace is visible at /workspace in the container.
Note that this extension doesn't require remote container.
This extension downloads the Wasm image converted from the container and runs it in the WebAssembly VM in your browser.
HTTP(S) networking is available in the contaienr with restrictions by the browser (CORS-restricted and no control over Forbidden headers). (see also the project README).
You can customize settings.json if you want to load other containers.
FAQ
"SharedArrayBuffer is not defined" error occurs when launching the container
To make SharedArrayBuffer available, please add ?vscode-coi=on query to the URL and reload the page.
More info about the container
License of the softwares in the container: see /usr/share/doc/*/copyright