You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Autocompletion is good, but many functions have simple patterns that you want to match.
erlang_ls could automatically (or with some keybinding or hint) suggest to fill the pattern.
For example:
If I have code case orddict:find(Key, Dict) of
I woulf like to automatically fill it out to:
caseorddict:find(Key, Dict) of
{ok, Value} -> #;
error -> implementend
where # marks where to place the cursor.
I don't know if this is in scope, so feel free to reject.
Just had the idea that many simple patterns could be automatically filled in.
The type information is already present.
Describe alternatives you've considered
Using Emacs so this could probably be done with tree-sitter query and some custom elisp to get the information from lsp.
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
Autocompletion is good, but many functions have simple patterns that you want to match.
erlang_ls could automatically (or with some keybinding or hint) suggest to fill the pattern.
For example:
If I have code
case orddict:find(Key, Dict) of
I woulf like to automatically fill it out to:
where
#
marks where to place the cursor.I don't know if this is in scope, so feel free to reject.
Just had the idea that many simple patterns could be automatically filled in.
The type information is already present.
Describe alternatives you've considered
Using Emacs so this could probably be done with tree-sitter query and some custom elisp to get the information from lsp.
The text was updated successfully, but these errors were encountered: