/erlang-vscode

Erlang/OTP support for Visual Studio Code

Primary LanguageTypeScriptOtherNOASSERTION

Erlang/OTP Support for Visual Studio Code

This extension provides Erlang/OTP support for Visual Studio Codeand is available at the Marketplace.

News

  • 2017-06-12: Common used rebar3 commands (contributed by @frepond)
  • 2017-06-09: Experimental workspace modules and functions auto-completion (contributed by @frepond)
  • 2016-02-17: Experimental module name auto-completion (currently Erlang standard library modules only)
  • 2016-02-16: Added experimental support for auto-completion of Erlang standard library module functions.

Enable it with:

setting erlang.enableExperimentalAutoComplete to true in your user settings and restart VSCode.

Features

  • Syntax highlighting
  • Auto-indent
  • Snippets
  • Auto-complete (experimental)
  • Rebar3 common commands
  • Format document (needs emacs installed)
  • Generate Erlang ctags (* needs ctags installed, for use with ctags plugin *)

Workspace auto-completion is based on file .erl_workspace.json in the workspace top folder. This file could be generated using the Cmd+Shit+P and Erlang: generate workspace completions. This file is generated with available *.beam under the current workspace (it needs the project to be already built). The command rebar compile` within the editor triggers this automatically upon successful compile.

Planned Features

  • Build support
  • Erlang shell

Work In Progress

This extension is still WIP, feel free to submit ideas/bug fixes on Github.

Snippets

  • rec: receive block
  • reca: receive block with after
  • case: case block
  • if: if block
  • try: try .. catch block

You can submit more snippets on Github.

Thanks