Sublime Forum

Pick the best match without showing dropdown

#1

I’ve disabled auto-complete, and I wanted to when I press tab it auto complete the first match, even when there are more matches(without showing the dropdown of matches).

e.g, when I press tab:
Screenshot%20from%202023-04-06%2015-14-45

How can I configure it to pick the best match without showing dropdown(when there are more matches pick the first one)?

It’s ok when just there is a match.

0 Likes

#2

Completion popup is used for all kinds of completions and snippets these days.

Just commiting the first candidate is likely to result in undesired/unexpected content to be added to your text/code.

Since ST4 does no longer support cycling through snippets via tab key the completion popup is the only way to select the desired snippet/completion.

Once multiple completions/snippets exist, ST always triggers a preview, even if auto_complete or tab_completion are disabled.

You probably want to checkout "mini_auto_complete": true setting, which causes ST to display the best completion as phantom before commiting instead of displaying the compltion popup (in most cases).

1 Like