Editor Plugins
Reason 的天性給編輯器有極大的支援。大多數編輯器外掛,至少提供了:
- 型別顯示。
- 透過
refmt
自動編排程式碼。 - 錯誤 & 警告顯示。
- 語法高亮顯示。
- 型別驅動自動補完。
- 跳至定義。
以及其他功能。
Editor Plugins & Language Server
Since Reason is just an alternative syntax for OCaml, we integrate seamlessly into the official OCaml editor toolchain as well.
- For VSCode, we recommend using the vscode-ocaml-platform plugin, which offers OCaml & Reason support out of the box.
- For other editors, we recommend using a language server client plugin of your choice, and pairing it with the
ocaml-lsp
. Check out the respective README's to get started.
Other:
- Vim/Neovim: Make sure to use ocaml-language-server for native development as suggested. (Mac, Linux):
npm install -g ocaml-language-server
- vim-reasonml: For use with esy, Reason, and Merlin (not LSP based). (Mac, Linux, Windows).