This repo can be used to launch an OCaml development environment using Docker and VSCode. It's based on the ocaml/opam2
Docker image, and uses the VSCode devcontainers feature. The environment comes with some commmon opam
packages preinstalled.
- Common IDE features (autocomplete, syntax highlighting, jump-to-definition, etc.) provided by the reason-vscode language server.
- Code formatting on save using
ocamlformat
and the badochov.ocaml-formatter extension. - A fully functional Debian environment that can be accessed through the VSCode integrated terminal or using
docker exec...
. - Easy to adapt to your use case.
- Docker
- VSCode
- Remote - Containers (ms-vscode-remote.remote-containers) extension
- Clone this repo.
- Start VSCode
- Run the
Remote-Containers: Open Folder in Container
command. - Select this folder.
- base
- core_kernel
- ounit
- qcheck
- dune
- ocamlformat