How to run SML REPL in Visual Studio Code

Viewed 2154

I am trying to use SML/NJ in Visual Studio Code editor but can't figure out how to run SML REPL in Visual Studio Code. I have installed SML extension in Visual Studio Code but no documentation is available. How to configure SML in Visual Studio Code?

2 Answers

Have you installed latest SML/NJ version ? Download from here https://www.smlnj.org/dist/working/index.html

Install it.

Now open VSCode, go to menu Terminal > New terminal. In terminal type sml and confirm command. It will enter the SML/NJ REPL mode.

On linux, you can open a bash terminal with Ctrl-j and use the sml command (if you have it installed) to get an integrated REPL.

Related