Elixir Snippet Compiler / Debugger For Visual Studio Code?

Not exactly what you’re looking for, but maybe this could be extended?

You can have an .exs file and run it with elixir your_file_name.exs. You don’t need modules or functions in that (but you can have them if you want). This is what I personally use for quick iterations/experiments.

So combining that with the previous link, I guess (but don’t know for sure, since I’m not familiar with VSCode) that it should be possible to create a task which runs the current file using the elixir command and outputs the result.