I am new to OCaml and trying to setup a productive OCaml environment.
I am familiar with VIM (first editor), Emacs (when I saw how well C-x C-e REPLs worked), IntelliJ/IDEA (when I saw Java/Kotlin auto completion “just worked”).
My current IDE of choice is IntelliJ/IDEA. I have https://github.com/reasonml-editor/reasonml-idea-plugin installed, but I don’t think I’m using it right.
Can someone provide links for:
- ideal VIM/OCaml setup
- ideal Emacs/OCaml setup
- ideal IntelliJ/OCaml setup
? (I want to study all 3 and pick one.)
The main features that matter to me are:
- easy access to the OCaml REPL
- “it just works” reference resolution – I should be able to put cursor over a Struct / Field / Function, hit some hot key, and jump to (1) where it is defined and (2) list of where it is used
- hot key to show all Structs (which starts “narrowing” to completion candidates as I type), and jumps to Struct definition when I hit ENTER
- easy way to run unit tests
- auto jump to correct line on compile errors