ostinelli / SublimErl

An Erlang Plugin for Sublime Text 2, which enables code completion and allows you to run tests within the editor itself.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoComplete with macros

gopig opened this issue · comments

i find it's unable to complete with macros.
is there any way to work aroud?

I don't know what you are talking about. Can you expand on that?

i holp it can index _.hrl file in the incldue dir
and process -define tag.
currently it olny can process -export tag.
for example, i define the follow macros:
-define(INVITE_WAIT_TIME, 1_30).
-define(CARRY_WAIT_TIME, 1*30).

i hope when i type INVITE the following would be complete by sublimErl

I understand.

If the macros are defined in the same file, then sublime will take care of that automatically. If the macros are on a different file, then this obviously has to be contextualized: only the imported .hrl files' macros should be available as autocomplete options, in the module that imports them.

This takes some work, it is a good suggestion but not a priority right now.

Thank you for the input, will keep this issue here.

r.

have you considered CTags? Would that work for you?