ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Erl-Auto​Completion

Erlang autocompletion

Details

Installs

  • Total 3K
  • Win 2K
  • OS X 376
  • Linux 488
Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1
Windows 1 6 5 1 7 3 5 4 4 7 5 5 2 6 4 6 3 10 4 6 11 5 6 8 2 5 8 8 5 7 3 7 8 4 4 4 2 5 6 4 5 5 11 13 24 2
OS X 0 1 3 1 0 0 0 0 2 1 0 2 1 2 1 2 1 0 0 2 0 0 4 1 0 0 1 1 1 1 1 2 0 1 0 1 1 0 0 0 1 4 2 0 1 0
Linux 0 0 0 1 0 2 3 1 0 4 0 0 0 2 2 2 0 1 1 0 1 1 1 0 4 1 0 1 0 0 3 0 3 1 1 0 5 1 0 1 2 0 0 2 2 0

Readme

Source
raw.​githubusercontent.​com

Erl-AutoCompletion

This is an Erlang auto-completion and goto-definition plugin of the Sublime editor. It only supports Sublime Text 3. If you are using Sublime Text 2, please upgrade to Sublime Text 3.

Installation

with Sublime Package Control

  1. Open command pallet (default: ctrl+shift+p)
  2. Type package control install and select command Package Control: Install Package
  3. Type Erl-AutoCompletion and select Erl-AutoCompletion

Additional info about to use Sublime Package Control you can find here: http://wbond.net/sublime_packages/package_control/usage.

with Git

cd ~/.config/sublime-text/Packages/ (open by: Preferences -> Browse Packages)
git clone https://github.com/lintingbin2009/Erl-AutoCompletion
restart sublime-text

Demonstration

Goto definition

The right mouse button can bring up the goto_definition(Erlang) menu. It can find definition of function, record and macro. You can set mousemap by Preferences -> Package Settings -> Erl-AutoCompletion -> Mousemap - default.

Requirement

Need to install Erlang. If Erlang is not installed, Erl-AutoCompletion will not be able to create an auto completion and goto definition index based on the version of Erlang you have installed.

Settings

Settings file open by: Preferences -> Package Settings -> Erl-AutoCompletion

escript settings

If you have set the escript environment variable, you do not need to set the escript value in the configuration file, comment it out.

Autocomplete on “:”

If you want auto-completion on “:”, you can define a trigger in the Sublime User or Erlang preferences:

# User/Preferences.sublime-settings or User/Erlang.sublime-settings
{
    // ...
    "auto_complete_triggers": [{"selector": "source.erlang", "characters": ":"}],
}

Discussing