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.
- Open command pallet (default:
ctrl+shift+p
) - Type
package control install
and select commandPackage Control: Install Package
- Type
Erl-AutoCompletion
and selectErl-AutoCompletion
Additional info about to use Sublime Package Control you can find here: http://wbond.net/sublime_packages/package_control/usage.
cd ~/.config/sublime-text/Packages/ (open by: Preferences -> Browse Packages)
git clone https://github.com/lintingbin2009/Erl-AutoCompletion
restart sublime-text
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.
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 file open by: Preferences -> Package Settings -> Erl-AutoCompletion
If you have set the escript environment variable, you do not need to set the escript value in the configuration file, comment it out.
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": ":"}],
}